public static void RemoveRPCs (NetworkPlayer playerID);

Description

删除所有属于该玩家 ID 的 RPC 函数。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnPlayerDisconnected(NetworkPlayer player) { Debug.Log("Clean up after player " + player); Network.RemoveRPCs(player); Network.DestroyPlayerObjects(player); } }

public static void RemoveRPCs (NetworkPlayer playerID, int group);

Description

删除所有属于该玩家 ID 并基于给定组发送的 RPC 函数。


public static void RemoveRPCs (NetworkViewID viewID);

Description

删除所有与此 viewID 号关联的 RPC 函数调用。