public static void DestroyNetworkedObject(object caller, DataStreamReader stream, ref DataStreamReader.Context context, NetworkConnection source) { MyClientBehaviour client = caller as MyClientBehaviour; uint networkId = stream.ReadUInt(ref context); NetworkId.DestroyNetworked(networkId, ref client.repository); }
void DestroyNetworkedBullet(Bullet b, uint networkId, Vector3 position) { NetworkId.DestroyNetworked(networkId, ref repository); SendNetworkedDestructionEventFor(networkId); }