public void Disconnect() { OnDestroy(); appState.EnterMenu(); state = State.idle; StopAllCoroutines(); }
void UnloadScenario() { scenario = null; currentScene = null; StopAllCoroutines(); if (observe) { gameObject.SetActive(false); } else { stateManager.EnterMenu(); } scenarioFolder = ""; }