Exemplo n.º 1
0
    IEnumerator KillPlayerCO()
    {
        MonstreBreathing.enabled = false;
        MonsterStep.enabled      = false;
        Dying         = true;
        input.enabled = false;
        Audio.PlayBreathingSound(Audio.KillPlayer);
        yield return(new WaitForSeconds(13));

        Audio.PlayBreathingSound(Audio.Restart);
        yield return(new WaitForSeconds(6));

        input.enabled = true;

        Movement.transform.position = StartPoint;
        PlayerGrid.CheckTiles();

        Dying = false;
        MonstreBreathing.enabled = true;
        MonsterStep.enabled      = true;
    }