public void ChangeScene(SceneType sT) { if (CurrentScene != null) { CurrentScene.Unload(); CurrentScene = null; } switch (sT) { case SceneType.BATTLE: CurrentScene = new BattleScene(mainGame); break; } CurrentScene.Load(); }
private void StartScene(Scene scene) { scene.Load(); ResourceMap.Instance.SetLoadCompleteCallback(() => { InitScene(scene); }); }