private void TransformNetworkEntity(Packet _packet) { int id = _packet.ReadInt(); Vector3 position = _packet.ReadVector3(); Quaternion rotation = _packet.ReadQuaternion(); ClientNetworkEntity.TransformNetworkEntity(id, position, rotation, this); }
private void SpawnNetworkEntity(Packet _packet) { int id = _packet.ReadInt(); string entityType = _packet.ReadString(); Vector3 position = _packet.ReadVector3(); Quaternion rotation = _packet.ReadQuaternion(); Vector3 scale = _packet.ReadVector3(); ClientNetworkEntity.SpawnNetworkEntity(id, entityType, position, rotation, scale); }
private void DestroyNetworkEntity(Packet _packet) { int id = _packet.ReadInt(); ClientNetworkEntity.DestroyNetworkEntity(id); }