private void OnNetMessageReceived(NetMessageDestroyValue destroyMessage, INetworkInterfaceConnection arg2) { if (NetSerializer.IsValidType(destroyMessage.TypeId)) { Type type = NetSerializer.GetTypeFromId(destroyMessage.TypeId); var container = SyncedValues.GetContainer(type); if (container != null) { SyncedValues.DestroyContainer(container); } } }