public void Start() { //// TEMP //// Vector3 position = new Vector3(0, 0, 0); Entity npc = CrawEntityManager.Instance.EntityFactory.CreateNPC(null, position); EntityAddMessage <UmbraEntityType> msg = new EntityAddMessage <UmbraEntityType>(npc.UniqueId, UmbraEntityType.NPC, position); _networkAgent.BroadcastMessage(msg, true); //// TEMP //// }
public override void Process(Entity entity, TransformComponent transform) { if (_sendUpdates) { _netAgent.BroadcastMessage(new EntityMoveMessage(entity.UniqueId, transform.Position)); } }