Exemplo n.º 1
0
        public virtual void Hide()
        {
            gameObject.SetActive(false);

            UIManager.currentWindow = this.parent;
            if (this.parent != null)
            {
                parent.gameObject.SetActive(true);
                this.parent = null;
            }
        }
Exemplo n.º 2
0
 public virtual void Show(UI_element _parent)
 {
     if (_parent)
     {
         this.parent = _parent;
     }
     UIManager.currentWindow = this;
     if (_parent)
     {
         parent.gameObject.SetActive(false);
     }
     Init();
     gameObject.SetActive(true);
 }
Exemplo n.º 3
0
 public override void Show(UI_element _parent)
 {
     base.Show(_parent);
     GameManager.RestoreLastControlMode();
 }