예제 #1
0
        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 ////
        }
예제 #2
0
 public override void Process(Entity entity, TransformComponent transform)
 {
     if (_sendUpdates)
     {
         _netAgent.BroadcastMessage(new EntityMoveMessage(entity.UniqueId, transform.Position));
     }
 }