Esempio n. 1
0
 void FinalizeAbility()
 {
     if (Input.GetMouseButtonDown(0) && GridHandler.CheckForEnemyWithinSpashZone(_abilityTarget, _selectedAbility.SplashRange))
     {
         _timeRef.GetCurrentTurnCharacter.Strategy.HasAttacked = true;
         _optionsRef.HideUI();
         _timeRef.GetCurrentTurnCharacter.UseSkill(_selectedAbility, GridHandler.RetrieveCharacter(_abilityTarget));
         _battleCam.FocusPosition(GridHandler.RetrieveTile(_abilityTarget).gameObject, CameraModes.MOVING);
     }
 }