Photon Unity Networking 2: IPunTurnManagerCallbacks Interface Reference

Photon Unity Networking 2

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
playerPlayer reference
turnTurn index
moveMove Object data
void OnPlayerMove ( Player  player,
int  turn,
object  move 
)

Called when a player moved (but did not finish the turn)

Parameters
playerPlayer reference
turnTurn Index
moveMove Object data
void OnTurnBegins ( int  turn)

Called the turn begins event.

Parameters
turnTurn Index
void OnTurnCompleted ( int  turn)

Called when a turn is completed (finished by all players)

Parameters
turnTurn Index
void OnTurnTimeEnds ( int  turn)

Called when a turn completes due to a time constraint (timeout for a turn)

Parameters
turnTurn index
Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH