예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }