first commit

This commit is contained in:
2026-06-04 20:14:47 +03:00
commit a70f7fe2b9
143 changed files with 19543 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
using UnityEngine;
using UnityEngine.UI;
public class InteractionPromptUI : MonoBehaviour
{
public static InteractionPromptUI Instance { get; private set; }
public GameObject root;
public Text promptText;
private void Awake()
{
if (Instance != null && Instance != this)
{
Destroy(gameObject);
return;
}
Instance = this;
Hide();
}
public void Show(string message)
{
if (root == null || promptText == null || string.IsNullOrWhiteSpace(message))
{
return;
}
promptText.text = message;
root.SetActive(true);
}
public void Hide()
{
if (root != null)
{
root.SetActive(false);
}
}
}