private void onGameSceneSwitchRequested(GameEvents.FromToAction <GameScenes, GameScenes> scenes) { //Utils.Log("Switching scene: " + scenes.to); if (!SoundtrackEditor.InitialLoadingComplete && scenes.to.Equals(GameScenes.MAINMENU)) { SoundtrackEditor.InitialLoadingComplete = true; } SoundtrackEditor.CurrentSituation.scene = Enums.ConvertScene(scenes.to); if (MonitorScene) { SoundtrackEditor.Instance.OnSituationChanged(); } }
private void onGameSceneLoadRequested(GameScenes scene) { //Utils.Log("Loading scene: " + scene); if (!SoundtrackEditor.InitialLoadingComplete && scene.Equals(GameScenes.MAINMENU)) { SoundtrackEditor.InitialLoadingComplete = true; } SoundtrackEditor.CurrentSituation.scene = Enums.ConvertScene(scene); if (MonitorScene) { SoundtrackEditor.Instance.OnSituationChanged(); } }