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