Exemple #1
0
        public virtual void Hide()
        {
            gameObject.SetActive(false);

            UIManager.currentWindow = this.parent;
            if (this.parent != null)
            {
                parent.gameObject.SetActive(true);
                this.parent = null;
            }
        }
Exemple #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);
 }
Exemple #3
0
 public override void Show(UI_element _parent)
 {
     base.Show(_parent);
     GameManager.RestoreLastControlMode();
 }