Esempio n. 1
0
    IEnumerator Death(Collider2D collision)
    {
        anim.SetBool("death", true);
        collision.gameObject.SendMessage("AttackAnimation");
        yield return(new WaitForSeconds(1f));

        Destroy(gameObject);
        ge.Death();
        StopCoroutine("Death");
    }