/// <summary> /// Checks if we are able to activate an ability /// </summary> /// <param name="ability">The ability to try and activate</param> /// <returns>If ability can be used</returns> private bool canUseAbility(AbilityBase ability) { if (!ability) { return(false); } if (m_canUseAbilities)// && m_useAbilities) { if (ability.canUseAbilityNow()) { return(true); } } return(false); }