예제 #1
0
 void OnApplicationQuit()
 {
     if (mInstance != null)
     {
         if (Application.isEditor)
         {
             DestroyImmediate(mInstance.gameObject);
         }
         else
         {
             Destroy(mInstance.gameObject);
         }
         mInstance = null;
     }
 }
예제 #2
0
 static bool LoadingOrAlertDisablingEvents(UICamera cam)
 {
     if (!UIAlertViewFactory.IsHidden)
     {
         return(cam != UIAlertViewFactory.GetAlertViewCamera());
     }
     else if (!UILoadingIndicatorFactory.IsHidden)
     {
         return(cam != UILoadingIndicatorFactory.GetLoadingIndicatorCamera());
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
 public virtual void PrepareSceneLoad()
 {
     RemoveAllEventListners();
     UIAlertViewFactory.Destroy();
 }