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

            return(_currentMask);
        }