IEnumerator Taunt() { canTaunt = false; _playerSounds.clip = playerSoundEffects[2]; _playerSounds.Play(); _moeScript.ChangeState(MoeAI.aiState.charging); yield return(new WaitForSeconds(1f)); canTaunt = true; }
void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { _playerScript.tauntDisabled = disableTaunt; _moeScript.ChangeState(MoeAI.aiState.stopped); if (moeDestination) { _moeNav.SetDestination(moeDestination.position); } if (breakableWall) { breakableWall.canBeDestroyed = true; } } }