コード例 #1
0
 private void Remove(AppearCharacterViewModel appearCharacterViewModel)
 {
     if (this.appearCharacterViewModels.IndexOf(appearCharacterViewModel) < 0)
     {
         return;
     }
     appearCharacterViewModel.Dispose();
     this.appearCharacterViewModels.Remove(appearCharacterViewModel);
     this.appearCharacterRemoveService.Execute(appearCharacterViewModel.PlayerAppearCharacterViewModel);
 }
コード例 #2
0
        public AppearCharacterViewModel Generate(PlayerAppearCharacterViewModel playerAppearCharacterViewModel)
        {
            var modelPrefab                       = ResourceLoader.LoadModel(appearCharacterModel.Name);
            var appearCharacterInstance           = Object.AppearToFloor(modelPrefab, GameManager.Instance.AppearCharacterManager.Root, playerAppearCharacterViewModel.Position);
            var appearCharacterView               = appearCharacterInstance.GetComponent <AppearCharacterView>();
            var generatedAppearCharacterViewModel = new AppearCharacterViewModel(
                appearCharacterView,
                playerAppearCharacterViewModel
                );

            return(generatedAppearCharacterViewModel);
        }
コード例 #3
0
        public AppearCharacterViewModel Generate()
        {
            var modelPrefab                       = ResourceLoader.LoadModel(appearCharacterModel.Name);
            var appearCharacterInstance           = Object.AppearToFloor(modelPrefab, GameManager.Instance.AppearCharacterManager.Root, GetInitialPosition());
            var appearCharacterView               = appearCharacterInstance.GetComponent <AppearCharacterView>();
            var generatedAppearCharacterViewModel = new AppearCharacterViewModel(
                appearCharacterView,
                GameManager.Instance.AppearCharacterManager.Create(appearCharacterView.transform, playerAppearCharacterReserveModel)
                );

            return(generatedAppearCharacterViewModel);
        }
コード例 #4
0
 private void EnqueueRemove(AppearCharacterViewModel appearCharacterViewModel)
 {
     this.reservedRemovableModels.Add(appearCharacterViewModel);
 }
コード例 #5
0
 private void Register(AppearCharacterViewModel appearCharacterViewModel)
 {
     this.appearCharacterViewModels.Add(appearCharacterViewModel);
 }
コード例 #6
0
 public void EnqueueRegister(AppearCharacterViewModel appearCharacterViewModel)
 {
     this.reservedRegisterModels.Add(appearCharacterViewModel);
 }