Beispiel #1
0
    void Death()
    {
        isDead = true;

        playerEvent.Storing();

        anim.SetTrigger("Die");

        playerAudio.clip = deathClip;
        playerAudio.Play();

        playerEvent.enabled    = false;
        playerMovement.enabled = false;

        fadeToScene.EndScene();
    }