Beispiel #1
0
        public void DestroyObject(DestroyPacket packet)
        {
            var physicsObject = _gameObjects[packet.Id];

            Object.Destroy(physicsObject.GameObject);
            _gameObjects.Remove(packet.Id);
        }
Beispiel #2
0
    public void SendDestroyInfo(uint objectId, uint senderId)
    {
        DestroyPacket packet = new DestroyPacket(senderId);

        packet.payload = true;

        PacketManager.Instance.SendGamePacket(packet, objectId, senderId);
    }
        public void Setup()
        {
            _packet = new DestroyPacket(Guid.NewGuid());

            _serializer = new DestroyPacketSerializer();
        }