OpCleanRpcBuffer() public méthode

Cleans server RPCs for PhotonView (without any further checks).
public OpCleanRpcBuffer ( PhotonView, view ) : void
view PhotonView,
Résultat void
Exemple #1
0
 public static void RemoveRPCs(PhotonPlayer targetPlayer)
 {
     if (!VerifyCanUseNetwork())
     {
         return;
     }
     if (!targetPlayer.IsLocal && !IsMasterClient)
     {
         Debug.LogError("Error; Only the MasterClient can call RemoveRPCs for other players.");
         return;
     }
     networkingPeer.OpCleanRpcBuffer(targetPlayer.ID);
 }
Exemple #2
0
 public static void RemoveRPCs(PhotonPlayer targetPlayer)
 {
     if (VerifyCanUseNetwork())
     {
         if (!targetPlayer.isLocal && !isMasterClient)
         {
             Debug.LogError("Error; Only the MasterClient can call RemoveRPCs for other players.");
         }
         else
         {
             networkingPeer.OpCleanRpcBuffer(targetPlayer.Id);
         }
     }
 }