Exemple #1
0
        public void ChangeScene(SceneType sT)
        {
            if (CurrentScene != null)
            {
                CurrentScene.Unload();
                CurrentScene = null;
            }

            switch (sT)
            {
            case SceneType.BATTLE:
                CurrentScene = new BattleScene(mainGame);
                break;
            }

            CurrentScene.Load();
        }
Exemple #2
0
 private void StartScene(Scene scene)
 {
     scene.Load();
     ResourceMap.Instance.SetLoadCompleteCallback(() => { InitScene(scene); });
 }