December 2013
Beginner
320 pages
8h 22m
English
Let us finish the creation of our game by creating an opening screen. We will then add some checks to stop players from selecting squares more than once. Follow that with a check to see if anyone won and finally display a game over screen. With that, the game will be ready for us to make it look great.
Let's perform the following steps for finishing our game:
SquareState script. Create the new GameState script and clear out the default contents. Add the following code snippet and we will have the values needed to track the current state of our game:public enum GameState {
Opening,
MultiPlayer,
GameOver
}TicTacToeControl ...Read now
Unlock full access