Пример #1
0
        private void Reset()
        {
            var gObj = GameObject.FindObjectOfType <TooltipManager>()?.gameObject ?? new GameObject("TooltipManager", typeof(TooltipManager));

            tooltipManager = gObj.GetComponent <TooltipManager>();
            tooltipManager.Hide();
        }
Пример #2
0
 private void Awake()
 {
     tooltipManager = GameObject.FindObjectOfType <TooltipManager>();
 }