public override void GameStart(TitleViewModel viewModel) { base.GameStart(viewModel); this.Publish(new UnloadSceneCommand(){ SceneName = "TitleScene"}); var setting = new MainSceneSettings(); this.Publish (new LoadSceneCommand(){ SceneName = "MainScene", Settings = setting}); }
public override void GameStart(TitleViewModel viewModel) { base.GameStart(viewModel); this.Publish(new UnloadSceneCommand() { SceneName = "TitleScene" }); var setting = new MainSceneSettings(); this.Publish(new LoadSceneCommand() { SceneName = "MainScene", Settings = setting }); }
public virtual void InitializeTitle(TitleViewModel viewModel) { // This is called when a TitleViewModel is created viewModel.GameStart.Action = this.GameStartHandler; TitleViewModelManager.Add(viewModel); }
public virtual void GameStart(TitleViewModel viewModel) { }
public override void InitializeTitle(TitleViewModel viewModel) { base.InitializeTitle(viewModel); // This is called when a TitleViewModel is created }