add modal window UI

This commit is contained in:
Vladimir Koshevarov
2022-12-06 11:25:30 +02:00
parent 3ccfc6a353
commit 71d9f79442
12 changed files with 2138 additions and 49 deletions
@@ -0,0 +1,22 @@
using UnityEngine;
public class ToolTipSystem : MonoBehaviour
{
private static ToolTipSystem _current;
[SerializeField] private ToolTip _toolTip;
public void Awake()
{
_current = this;
_current._toolTip.gameObject.SetActive(false);
}
public static void Show(string content, string header = "")
{
_current._toolTip.SetText(content, header);
_current._toolTip.gameObject.SetActive(true);
}
public static void Hide()
{
_current._toolTip.gameObject.SetActive(false);
}
}