Chess Game
1.1.0
A full chess game for Unity
|
This is the game over script attached to the game over prefab, it shows a simple text and a few buttons to take the player back to a new game or the menu. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | initialize (string text, Action resetBoard, Action mainMenu) |
initialize the prefab, provide callback functions and display a win/lose/draw message. More... | |
void | ResetBoard () |
Reset board, if a callback has been provided then call it. More... | |
void | MainMenu () |
Go to main menu, if a callback has been provided then call it. More... | |
Public Attributes | |
Text | displayText |
The text to display win/lose/draw message. More... | |
Button | ResetButton |
Reset button. More... | |
Button | MainMenuButton |
Main menu button More... | |
This is the game over script attached to the game over prefab, it shows a simple text and a few buttons to take the player back to a new game or the menu.
void cgGameOverScript.initialize | ( | string | text, |
Action | resetBoard, | ||
Action | mainMenu | ||
) |
initialize the prefab, provide callback functions and display a win/lose/draw message.
text | win/lose/draw message |
resetBoard | Reset board callback |
mainMenu | Go to main menu callback |
void cgGameOverScript.MainMenu | ( | ) |
Go to main menu, if a callback has been provided then call it.
void cgGameOverScript.ResetBoard | ( | ) |
Reset board, if a callback has been provided then call it.
Text cgGameOverScript.displayText |
The text to display win/lose/draw message.
Button cgGameOverScript.MainMenuButton |
Main menu button
Button cgGameOverScript.ResetButton |
Reset button.