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