Chess Game
1.1.0
A full chess game for Unity
|
This is the main menu script attached to the main menu prefab, it has a few buttons, check boxes and a slider to control game mode and difficulty. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | DifficultyChanged () |
Difficulty slider changed. More... | |
void | Play () |
Start the game, initialize the chessboard prefab. More... | |
void | ToggleMode () |
Toggle which colors human controls. More... | |
void | Quit () |
Quit the game. More... | |
Public Attributes | |
Slider | DifficultySlider |
The Difficulty Slider(min =1, max = 3) More... | |
Toggle | HumanAsWhite |
Is a human controlling the white pieces? More... | |
Toggle | HumanAsBlack |
Is a human controlling the black pieces? More... | |
Toggle | DisplayAs3D |
Is a human controlling the black pieces? More... | |
Text | ModeDisplayText |
The textfield to display the current mode, based on what colors are controlled by human. More... | |
Dropdown | BoardType |
The textfield to display the current mode, based on what colors are controlled by human. More... | |
GameObject | ChessBoard |
The chessboard prefab More... | |
GameObject | ChessBoardTiny |
The chessboard prefab More... | |
cgChessBoardScript.BoardMode | currentBoardMode |
The current mode. More... | |
This is the main menu script attached to the main menu prefab, it has a few buttons, check boxes and a slider to control game mode and difficulty.
void cgMenuScript.DifficultyChanged | ( | ) |
Difficulty slider changed.
void cgMenuScript.Play | ( | ) |
Start the game, initialize the chessboard prefab.
void cgMenuScript.Quit | ( | ) |
Quit the game.
void cgMenuScript.ToggleMode | ( | ) |
Toggle which colors human controls.
Dropdown cgMenuScript.BoardType |
The textfield to display the current mode, based on what colors are controlled by human.
GameObject cgMenuScript.ChessBoard |
The chessboard prefab
GameObject cgMenuScript.ChessBoardTiny |
The chessboard prefab
cgChessBoardScript.BoardMode cgMenuScript.currentBoardMode |
The current mode.
Slider cgMenuScript.DifficultySlider |
The Difficulty Slider(min =1, max = 3)
Toggle cgMenuScript.DisplayAs3D |
Is a human controlling the black pieces?
Toggle cgMenuScript.HumanAsBlack |
Is a human controlling the black pieces?
Toggle cgMenuScript.HumanAsWhite |
Is a human controlling the white pieces?
Text cgMenuScript.ModeDisplayText |
The textfield to display the current mode, based on what colors are controlled by human.