public void Duel()
    {
        DisableButtons();
        opponent.SelectAction();
        if (GetGameStatus().Equals("Win"))
        {
            player.IncreaseScore();
            UpdatePlayerScore("Player Score : " + player.GetScore());
        }

        else if (GetGameStatus().Equals("Lose"))
        {
            opponent.IncreaseScore();
            UpdateAIScore("Ai Score : " + opponent.GetScore());
        }

        else
        {
            //Just draw nothing happen.
        }

        StartCoroutine(ClearSelectedFromBoth());
    }
Beispiel #2
0
 public void TestUpdateScore()
 {
     ai.IncreaseScore();
     Assert.AreEqual(1, ai.GetScore());
 }