public void CallTargetReturnPlayerInfo(NetworkConnection target, QueryProcessor.PlayerInfo[] answer) { if (!NetworkServer.active) { Debug.LogError("TargetRPC Function TargetReturnPlayerInfo called on client."); return; } if (target is ULocalConnectionToServer) { Debug.LogError("TargetRPC Function TargetReturnPlayerInfo called on connection to server"); return; } NetworkWriter networkWriter = new NetworkWriter(); networkWriter.Write(0); networkWriter.Write((short)((ushort)2)); networkWriter.WritePackedUInt32((uint)QueryProcessor.kTargetRpcTargetReturnPlayerInfo); networkWriter.Write(base.GetComponent <NetworkIdentity>().netId); GeneratedNetworkCode._WriteArrayPlayerInfo_None(networkWriter, answer); this.SendTargetRPCInternal(target, networkWriter, 7, "TargetReturnPlayerInfo"); }