Ejemplo n.º 1
0
    void GameOver(GameOverType winner)
    {
        StopCoroutine(Timer());

        gameOver = true;
        bearController.canMove = false;

        switch (winner)
        {
        case GameOverType.Bear:
            StartCoroutine(DoAfter(() => { GameOverScreen(winner); }, 2f));
            break;

        case GameOverType.Cursor:
            StartCoroutine(MoveCameraForEnd());
            animalControl.Animate();
            StartCoroutine(DoAfter(() => { GameOverScreen(winner); }, 7f));
            break;
        }
    }