NetworkingPeer.CleanRpcBufferIfMine C# (CSharp) Method

CleanRpcBufferIfMine() public method

public CleanRpcBufferIfMine ( PhotonView, view ) : void
view PhotonView,
return void
    public void CleanRpcBufferIfMine(PhotonView view)
    {
        if (view.ownerId != this.mLocalActor.ID && !mLocalActor.isMasterClient)
        {
            Debug.LogError("Cannot remove cached RPCs on a PhotonView thats not ours! " + view.owner + " scene: " + view.isSceneView);
            return;
        }

        this.OpCleanRpcBuffer(view);
    }

Usage Example

Exemplo n.º 1
0
 public static void RemoveRPCs(PhotonView targetPhotonView)
 {
     if (VerifyCanUseNetwork())
     {
         networkingPeer.CleanRpcBufferIfMine(targetPhotonView);
     }
 }
NetworkingPeer