void OnRebuild() { ManagerUpdate.Init(); GlobalSystemStorage.Init(); StarterSetup(); initialized = true; GlobalSystemStorage.Instance.StartProcessings(); Debug.LogWarning("Произошел ребилд. При возникновении багов, опишите проблему и обратитесь к разработчику"); }
void ClearScene() { if (!initialized) { return; } ManagerUpdate.Clear(); GlobalSystemStorage.StopProcessings(); Group.Clear(); initialized = false; }
private void Awake() { //initialized = false; //Debug.Log("initialized = " + initialized); ManagerUpdate.Init(); GlobalSystemStorage.Init(); StarterSetup(); EntitiesInitializing(); GlobalSystemStorage.Instance.StartProcessings(); initialized = true; Debug.Log("initialized: " + initialized); }
void ClearSceneOnQuit() { if (!initialized) { return; } EntitiesDeinitializing(); ManagerUpdate.Clear(); GlobalSystemStorage.StopProcessings(); Group.Clear(); initialized = false; }