Ejemplo n.º 1
0
    void ExecuteTurn()
    {
        Debug.Log("Score is :" + score[0] + "-" + score[1]);

        player1Score.text = "Player 1 score: " + score [1];
        player2Score.text = "Player 2 score: " + score [0];

        if (VerifiyIfGameOver())
        {
            Application.Quit();
        }
        if (turn == 0)
        {
            player1.createProjectile();
            turn = 1;
        }
        else
        {
            player2.createProjectile();
            turn = 0;
        }
    }