Пример #1
0
 public void RemovePopupActive(IPopupController _popup)
 {
     if (popupsActive.Count == 0)
     {
         return;
     }
     popupsActive.Remove(_popup);
     _popup.SelfDestruction();
     if (popupsActive.Count == 0)
     {
         //gpRaycaster.enabled = false;
     }
 }
Пример #2
0
 /**
  * RemovePopupActive : remove các popup đang active ra khỏi list
  * */
 public void RemovePopupActive(IPopupController _popup)
 {
     if (popupsActive.Count == 0)
     {
         return;
     }
     popupsActive.Remove(_popup);
     _popup.SelfDestruction();
     if (popupsActive.Count == 0)
     {
         myCanvasGroup.alpha          = 0f;
         myCanvasGroup.blocksRaycasts = false;
     }
 }