IEnumerator FireBreathSequence()
    {
        FindObjectOfType <BattleController>().LockInput();

        audio.PlayOneShot(fire);
        FlameBreath.Play();
        yield return(new WaitForSeconds(1.5f));

        FlameBreath.Stop();

        yield return(new WaitForSeconds(1.5f));

        foe.AffectHealth(-20);
        yield return(new WaitForSeconds(2.5f));

        FindObjectOfType <BattleController>().StartTurn();
    }
Пример #2
0
 public void Damage()
 {
     _foe.AffectHealth(-80);
 }