Exemple #1
0
 // win / lose in other cases except time running out
 public async void EndGame(bool win)
 {
     timer.StopTimerProgression();
     await new WaitForSecondsRealtime(3);
     Time.timeScale = 1;
     GameManager.EndMinigame(win);
 }
    // win / lose in other cases except time running out
    public async void EndGame()
    {
        if (this.gameOver)
        {
            return;
        }
        this.gameOver = true;
        timer.StopTimerProgression();

        bool win = this.logo == this.haalari;

        if (win)
        {
            logoUpdater.startRotateLogoAnimation();
        }
        else
        {
            logoUpdater.StartDropLogoAnimation();
        }

        await new WaitForSecondsRealtime(3);

        GameManager.EndMinigame(win);
    }