Ejemplo n.º 1
0
    public IEnumerator Kill()
    {
        playerUpperAnim.Play(GetAnimName("Death"));
        playerLowerAnim.Play("ShavoDashLegs");
        PlayAudioEvent(playerDeath);
        yield return(new WaitForSeconds(1.0f));

        SaveSystem.SaveGame();
        yield return(new WaitForSeconds(2.0f));

        deathMenu.deathMenuPop();
    }