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