private void _ClearCastSkill(ICastSkill obj) { _CastSkill.HitNextsEvent -= _AddSkills; _CastSkill = null; _UsableSkills.Clear(); }
private void _InBattle(ICastSkill obj) { if (EntityController.IsMainEntity(_Visible)) { var cam = GameObject.FindObjectOfType <CameraFollow>(); cam.Watchtarget = BattleCameraTarget; cam.CenterTarget = CenterCameraTarget; } }
private void BattleCastControllerProviderOnSupply(ICastSkill cast_skill) { Debug.Log("CastSkill id : " + cast_skill.Id); _CastSkill = cast_skill; _CastSkill.HitNextsEvent += _AddHitSkills; foreach (var child in _Childs) { Destroy(child); } Menu.elements.Clear(); foreach (var actorStatusType in _CastSkill.Skills) { _AddSkill(actorStatusType); } Menu.arrangeElements(); }
private void _SetCastSkill(ICastSkill obj) { _CastSkill = obj; _CastSkill.HitNextsEvent += _AddSkills; _UsableSkills.AddRange(_CastSkill.Skills); }
private void _OutBattle(ICastSkill obj) { if (EntityController.IsMainEntity(_Visible)) { var cam = GameObject.FindObjectOfType<CameraFollow>(); cam.Watchtarget = NormalCameraTarget; cam.CenterTarget = CenterCameraTarget; } }
private void BattleCastControllerProviderOnUnsupply(ICastSkill cast_skill) { _CastSkill.HitNextsEvent -= _AddHitSkills; _CastSkill = null; }
private void _UnsupplyCastBattle(ICastSkill obj) { _CastSkill = null; CastSkillObject.SetActive(false); }
private void _SupplyCastBattle(ICastSkill obj) { _CastSkill = obj; CastSkillObject.SetActive(true); }