Photon Unity Networking 2
2.12
|
IPunTurnManagerCallbacks Interface Reference
Public Member Functions | |
void | OnTurnBegins (int turn) |
Called the turn begins event. More... | |
void | OnTurnCompleted (int turn) |
Called when a turn is completed (finished by all players) More... | |
void | OnPlayerMove (Player player, int turn, object move) |
Called when a player moved (but did not finish the turn) More... | |
void | OnPlayerFinished (Player player, int turn, object move) |
When a player finishes a turn (includes the action/move of that player) More... | |
void | OnTurnTimeEnds (int turn) |
Called when a turn completes due to a time constraint (timeout for a turn) More... | |
Member Function Documentation
void OnPlayerFinished | ( | Player | player, |
int | turn, | ||
object | move | ||
) |
When a player finishes a turn (includes the action/move of that player)
- Parameters
-
player Player reference turn Turn index move Move Object data
void OnPlayerMove | ( | Player | player, |
int | turn, | ||
object | move | ||
) |
Called when a player moved (but did not finish the turn)
- Parameters
-
player Player reference turn Turn Index move Move Object data
void OnTurnBegins | ( | int | turn | ) |
Called the turn begins event.
- Parameters
-
turn Turn Index
void OnTurnCompleted | ( | int | turn | ) |
Called when a turn is completed (finished by all players)
- Parameters
-
turn Turn Index
void OnTurnTimeEnds | ( | int | turn | ) |
Called when a turn completes due to a time constraint (timeout for a turn)
- Parameters
-
turn Turn index