void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of inventory found!"); return; } instance = this; }
private void LoadChild() { HeroScrollView = transform.GetChild(2).gameObject.GetComponent <PopUpUI>(); MiniScrollView = transform.GetChild(3).gameObject.GetComponent <PopUpUI>(); }
private void Awake() { Instance = this; }
public void PushOnUIStack(PopUpUI UI) { UI.gameObject.SetActive(true); UIStack.Push(UI); }