Esempio n. 1
0
    IEnumerator Taunt()
    {
        canTaunt = false;

        _playerSounds.clip = playerSoundEffects[2];
        _playerSounds.Play();

        _moeScript.ChangeState(MoeAI.aiState.charging);

        yield return(new WaitForSeconds(1f));

        canTaunt = true;
    }
Esempio n. 2
0
    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;
            }
        }
    }