public override void FinishCurrentLevel(LevelRootViewModel viewModel)
        {
            base.FinishCurrentLevel(viewModel);

            //Simple scene transition.

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

            Publish(new LoadSceneCommand()
            {
                SceneName = "MainMenuScene"
            });
        }
 public virtual void FinishCurrentLevel(LevelRootViewModel viewModel)
 {
 }
 public override void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     base.InitializeLevelRoot(viewModel);
     // This is called when a LevelRootViewModel is created
 }
 public virtual void InitializeLevelRoot(LevelRootViewModel viewModel)
 {
     // This is called when a LevelRootViewModel is created
     viewModel.FinishCurrentLevel.Action = this.FinishCurrentLevelHandler;
     LevelRootViewModelManager.Add(viewModel);
 }