28 lines
447 B
C#
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);
|
|
}
|
|
} |