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;
        }
Example #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;
        }