public void Init() { Instance = this; Logger.log.Debug("Warning UI Awake"); if (firstShow) { firstShow = false; StartCoroutine(LookForUnmetDependencies()); } }
private void SceneManager_activeSceneChanged(Scene from, Scene to) { if (to.name == "EmptyTransition") { if (Instance != null) { Instance.StopAllCoroutines(); Destroy(Instance.gameObject); _mainFlow = null; } Instance = null; } }