Пример #1
0
    void NewGame()
    {
        //  StartCoroutine(pauseGame());
        sc.ResetScore();

        tm.resetTimer();

        bm.Spawn();
    }
Пример #2
0
    public void gameOver(int winningPlayer, int winningPlayerScore, string winningPlayerName, int losingPlayer, int losingPlayerScore, string losingPlayerName)
    {
        // winScreen.text = "Congrats " + winningPlayerName + "! You won with " + winningPlayer + " points! /n Don't Worry " + losingPlayer + " you'll get them next time!";
        winUi.sprite  = winner[winningPlayer];
        gameOverPause = true;
        sc.ResetScore();

        tm.StartTimer();

        bm.Spawn();
        winScreen.text = "";
    }
Пример #3
0
    IEnumerator Respawn(BallMovement mov)
    {
        yield return(new WaitForSeconds(respawnTime));

        mov.Spawn(spawnPoints[(++lastSpawn) % 4].position);
    }