public virtual void Redisplay() { gameObject.SetActive(true); if (CurrentUIType.formType == UIFormType.PopUp) { UIMask.GetInstance().SetMask(this); } }
// Move this UI node out of the UI stack public virtual void Hide() { gameObject.SetActive(false); if (CurrentUIType.formType == UIFormType.PopUp) { UIMask.GetInstance().CancelMask(); } }
// Access to singleton public static UIMask GetInstance() { if (_currentMask == null) { _currentMask = new GameObject("_UIMask").AddComponent <UIMask>(); } return(_currentMask); }