Ejemplo n.º 1
0
        public override void FinishCurrentLevel(LevelRootViewModel viewModel)
        {
            base.FinishCurrentLevel(viewModel);

            //Simple scene transition.

            Publish(new UnloadSceneCommand()
            {
                SceneName = viewModel.CurrentLevel.LevelScene
            });

            Publish(new LoadSceneCommand()
            {
                SceneName = "MainMenuScene"
            });
        }
Ejemplo n.º 2
0
        public override void FinishCurrentLevel(LevelRootViewModel viewModel)
        {
            base.FinishCurrentLevel(viewModel);

            //Simple scene transition.

            Publish(new UnloadSceneCommand()
            {
                SceneName = viewModel.CurrentLevel.LevelScene
            });

            Publish(new LoadSceneCommand()
            {
                SceneName = "MainMenuScene"
            });
        }
Ejemplo n.º 3
0
 public override void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     base.InitializeLevelRoot(viewModel);
 }
Ejemplo n.º 4
0
 public override void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     base.InitializeLevelRoot(viewModel);
 }
Ejemplo n.º 5
0
 public virtual void FinishCurrentLevel(LevelRootViewModel viewModel)
 {
 }
Ejemplo n.º 6
0
 public virtual void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     // This is called when a LevelRootViewModel is created
     viewModel.FinishCurrentLevel.Action = this.FinishCurrentLevelHandler;
     LevelRootViewModelManager.Add(viewModel);
 }
Ejemplo n.º 7
0
 public virtual void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     // This is called when a LevelRootViewModel is created
     viewModel.FinishCurrentLevel.Action = this.FinishCurrentLevelHandler;
     LevelRootViewModelManager.Add(viewModel);
 }
Ejemplo n.º 8
0
 public virtual void FinishCurrentLevel(LevelRootViewModel viewModel)
 {
 }