public CleanRpcBufferIfMine ( PhotonView, view ) : void | ||
view | PhotonView, | |
Résultat | 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);
}
public static void RemoveRPCs(PhotonView targetPhotonView) { if (VerifyCanUseNetwork()) { networkingPeer.CleanRpcBufferIfMine(targetPhotonView); } }