public static void HandleCustomRpc(byte?playerId, CustomRpcType rpcType) { Rpc <CustomRpc> .Instance.Send(new Data(playerId, rpcType)); }
public Data(byte?playerId, CustomRpcType rpcType) { PlayerId = playerId ?? byte.MaxValue; RpcType = rpcType; }