Photon Unity Networking 2
2.12
|
TeamExtensions Class Reference
Extension used for PunTeams and Player class. Wraps access to the player's custom property. More...
Static Public Member Functions | |
static PunTeams.Team | GetTeam (this Player player) |
Extension for Player class to wrap up access to the player's custom property. More... | |
static void | SetTeam (this Player player, PunTeams.Team team) |
Switch that player's team to the one you assign. More... | |
Detailed Description
Extension used for PunTeams and Player class. Wraps access to the player's custom property.
Member Function Documentation
|
static |
Extension for Player class to wrap up access to the player's custom property.
- Returns
- PunTeam.Team.none if no team was found (yet).
|
static |
Switch that player's team to the one you assign.
Internally checks if this player is in that team already or not. Only team switches are actually sent.
- Parameters
-
player team