Exemplo n.º 1
0
    public void Loose()
    {
        GameLogicOpitions.ResetGameLogicOptions();
        SetFinalScore(score);

        menu.ToggleMenu(true);
        cameraController.SetPosition(Vector2.zero);

        if (score >= 5)
        {
            rewardManager.GenerateRewards();
            menu.ToggleReward();
        }

        menuStart = Time.time;

        //Score
        gameScore.gameObject.SetActive(false);
    }