protected void OnSpecialAttackPressed(int attackIndex) { if (m_MovementModel == null) { Debug.Log("Cant do a special attack because there is no movement model"); return; } if (m_MovementModel.CanSpecialAttack() == false) { Debug.Log("Couldn't do a special attack because CanSpecialAttack was false"); return; //Some spells should be able to override this } m_AttackManager.OnAttack(attackIndex); m_MovementModel.DoSpecialAttack(m_AttackManager.GetStillTime(attackIndex)); }