public void RemoveMono(MonoViewModel monoViewModel) { Debug.Assert(this.monoViewModels.Contains(monoViewModel), "消去予定のものが存在しません"); Object.DisAppear(monoViewModel.MonoView.gameObject); monoViewModels.Remove(monoViewModel); // 消去 this.monoViewRemoveService.Execute(monoViewModel); }
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); }
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); }
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); }
public void RegisterMade(MonoViewModel monoViewModel) { this.MonoViewModel = monoViewModel; }