Ejemplo n.º 1
0
        public override void Execute(IAIContext context)
        {
            EntityTargetContext entityTargetContext = context as EntityTargetContext;

            if (entityTargetContext != null)
            {
                TargetSelectorExplosives.TryGetBest(entityTargetContext, base.scorers, entityTargetContext.Entities, entityTargetContext.EntityCount, this.allScorersMustScoreAboveZero, out entityTargetContext.ExplosiveTarget, out entityTargetContext.ExplosiveScore);
            }
        }
        public virtual void Execute(IAIContext context)
        {
            EntityTargetContext context1 = context as EntityTargetContext;

            if (context1 == null)
            {
                return;
            }
            TargetSelectorExplosives.TryGetBest(context1, this.get_scorers(), context1.Entities, context1.EntityCount, this.allScorersMustScoreAboveZero, out context1.ExplosiveTarget, out context1.ExplosiveScore);
        }