示例#1
0
        public void RemoveMono(MonoViewModel monoViewModel)
        {
            Debug.Assert(this.monoViewModels.Contains(monoViewModel), "消去予定のものが存在しません");
            Object.DisAppear(monoViewModel.MonoView.gameObject);
            monoViewModels.Remove(monoViewModel);

            // 消去
            this.monoViewRemoveService.Execute(monoViewModel);
        }
示例#2
0
        public MonoViewModel CreateMono(PlayerMonoViewModel playerMonoViewModel, Vector3 position)
        {
            var instance = Object.AppearToFloor(playerMonoViewModel.MonoInfo.MonoPrefab, root, position);
            var monoView = instance.GetComponent <MonoView> ();

            Debug.Assert(monoView != null, "monoViewではありません");

            var monoViewModel = new MonoViewModel(monoView, playerMonoViewModel);

            monoViewModels.Add(monoViewModel);

            return(monoViewModel);
        }
示例#3
0
        public MonoViewModel CreateMono(MonoInfo monoInfo, Vector3 position)
        {
            var instance = Object.AppearToFloor(monoInfo.MonoPrefab, root, position);
            var monoView = instance.GetComponent <MonoView> ();

            Debug.Assert(monoView != null, "monoViewではありません");

            // プレイヤー情報の作成
            var playerMonoViewModel = this.monoViewCreateService.Execute(monoInfo.Id);

            var monoViewModel = new MonoViewModel(monoView, playerMonoViewModel);

            monoViewModels.Add(monoViewModel);

            return(monoViewModel);
        }
 public void RegisterMade(MonoViewModel monoViewModel)
 {
     this.MonoViewModel = monoViewModel;
     this.PlayerArrangementTargetModel.SetPlayerMonoView(monoViewModel.PlayerMonoViewModel);
 }
示例#5
0
 public void Execute(MonoViewModel monoViewModel)
 {
     Debug.Assert(monoViewModel.PlayerMonoViewModel != null, "MonoViewRemoveServiceが開始できません");
     this.playerMonoViewRepository.Remove(monoViewModel.PlayerMonoViewModel);
 }
 public void Execute(IPlayerArrangementTarget playerArrangementTarget, MonoViewModel monoViewModel)
 {
     playerArrangementTarget.RegisterMade(monoViewModel);
     this.playerArrangementTargetRepository.Store(playerArrangementTarget.PlayerArrangementTargetModel);
 }
示例#7
0
 public void RegisterMade(MonoViewModel monoViewModel)
 {
     this.MonoViewModel = monoViewModel;
 }