CleanRpcBufferIfMine
How do I use Clean Rpc Buffer If Mine
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
2791 | public void CleanRpcBufferIfMine(PhotonView view) | 1 |
2820 | this.CleanRpcBufferIfMine(view); | 2 |
2454 | networkingPeer.CleanRpcBufferIfMine(targetPhotonView); | 3 |
File name: NetworkingPeer.cs
Copy
2790 // Remove RPCs of view (if they are local player's RPCs)
2791 public void CleanRpcBufferIfMine(PhotonView view)
2792 {
2793 if (view.ownerId != this.mLocalActor.ID && !mLocalActor.isMasterClient)
2794 {
2795 Debug.LogError("Cannot remove cached RPCs on a PhotonView thats not ours! " + view.owner + " scene: " + view.isSceneView);
2796 return;
2797 }
2798
2799 this.OpCleanRpcBuffer(view);
2800 }
File name: NetworkingPeer.cs
Copy
2813 public void RemoveRPCsInGroup(int group)
2814 {
2815 foreach (KeyValuePair
2816 {
2817 PhotonView view = kvp.Value;
2818 if (view.group == group)
2819 {
2820 this.CleanRpcBufferIfMine(view);
2821 }
2822 }
2823 }
File name: PhotonNetwork.cs
Copy
2447 public static void RemoveRPCs(PhotonView targetPhotonView)
2448 {
2449 if (!VerifyCanUseNetwork())
2450 {
2451 return;
2452 }
2453
2454 networkingPeer.CleanRpcBufferIfMine(targetPhotonView);
2455 }
CleanRpcBufferIfMine 128 lượt xem
Gõ tìm kiếm nhanh...