SetMasterClient() public méthode

Uses a well-known property to set someone new as Master Client in room (requires "Server Side Master Client" feature).
public SetMasterClient ( int nextMasterId ) : bool
nextMasterId int
Résultat bool
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }
Exemple #2
0
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(VerifyCanUseNetwork() && IsMasterClient && networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }