Ejemplo n.º 1
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});
        }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 5
0
 public override void InitializeTitle(TitleViewModel viewModel)
 {
     base.InitializeTitle(viewModel);
     // This is called when a TitleViewModel is created
 }
Ejemplo n.º 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);
 }