Ejemplo n.º 1
0
    void Awake()
    {
        if (instance != null)
        {
            Debug.LogWarning("More than one instance of inventory found!");
            return;
        }

        instance = this;
    }
Ejemplo n.º 2
0
 private void LoadChild()
 {
     HeroScrollView = transform.GetChild(2).gameObject.GetComponent <PopUpUI>();
     MiniScrollView = transform.GetChild(3).gameObject.GetComponent <PopUpUI>();
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     Instance = this;
 }
Ejemplo n.º 4
0
 public void PushOnUIStack(PopUpUI UI)
 {
     UI.gameObject.SetActive(true);
     UIStack.Push(UI);
 }