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});
        }
示例#2
0
        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)
 {
 }
示例#5
0
 public override void InitializeTitle(TitleViewModel viewModel)
 {
     base.InitializeTitle(viewModel);
     // This is called when a TitleViewModel is created
 }
示例#6
0
 public override void InitializeTitle(TitleViewModel viewModel)
 {
     base.InitializeTitle(viewModel);
     // This is called when a TitleViewModel is created
 }
 public virtual void GameStart(TitleViewModel viewModel)
 {
 }
 public virtual void InitializeTitle(TitleViewModel viewModel)
 {
     // This is called when a TitleViewModel is created
     viewModel.GameStart.Action = this.GameStartHandler;
     TitleViewModelManager.Add(viewModel);
 }