Ejemplo n.º 1
0
    private IEnumerator DeathSequenceEnum()
    {
        // lose control
        movement.canMove = false;
        // start playing sounds
        playerSoundManager.DeathSounds();
        playerLightManager.DeathSequence();
        movement.DeathSequence();
        // start rotating on z and on x, move down slowly, fade to black

        yield return(new WaitForSeconds(3f));

        GameManager.instance.DeathSequence();
    }