Exemplo n.º 1
0
    public override IEnumerator DelayGrowl()
    {
        if (effect)
        {
            effect.Play();
        }
        else
        {
            print("BoAtRiHeHealing/DelayFireball: no effect found");
        }
        yield return(new WaitForSeconds(1f));

        if (SFXPlayer && AttackSound)
        {
            SFXPlayer.PlayClipOnce(AttackSound);
        }
        else
        {
            Boss.PlayGrowl();
            print("BoAtRiHeHealing/DelayGrowl: missing SoundSystem or AttackSound");
        }
        print("Boss casts healing");
        Boss.AdjustHealthAndHealthPB(10f);
        //yield return new WaitForSeconds(0.5f);
    }