Files
DeviantMobile-Rohan/Assets/New Lowpoly Models/Scripts/MobileInteractButton.cs
2026-06-26 22:41:39 +05:30

28 lines
447 B
C#

using UnityEngine;
public class MobileInteractButton : MonoBehaviour
{
public static MobileInteractButton Instance;
private void Awake()
{
Instance = this;
gameObject.SetActive(false);
}
public void Interact()
{
InteractionManager.Interact();
}
public void Show()
{
gameObject.SetActive(true);
}
public void Hide()
{
gameObject.SetActive(false);
}
}