private void OnObjectDestroyed(DestroyObjectPacket packet) { if (Objects.ContainsKey(packet.ObjectId)) { var obj = Objects[packet.ObjectId]; Destroy(obj.gameObject); // Pool.Despawn(obj.gameObject); Objects.Remove(packet.ObjectId); } else { Record.Log($"Tried to destroy in-existent object"); } }
private void OnDestroyObjectRequest(DestroyObjectPacket destroyObjectPacket) { }