Exemplo n.º 1
0
        public AiTaskBase(EntityAgent entity)
        {
            this.entity = entity;
            this.world  = entity.World;
            randTL      = new ThreadLocal <Random>(() => new Random((int)entity.EntityId));

            this.pathTraverser = entity.GetBehavior <EntityBehaviorTaskAI>().PathTraverser;
        }
Exemplo n.º 2
0
        public AiGoalBase(EntityAgent entity)
        {
            this.entity = entity;
            this.world  = entity.World;
            rand        = new Random((int)entity.EntityId);

            this.pathTraverser = entity.GetBehavior <EntityBehaviorGoalAI>().PathTraverser;
        }