public override float GetScore(BaseContext c) { object obj; if (DistanceFromSpawnToTargetInRange.Evaluate(c as NPCHumanContext, this.range)) { obj = 1; } else { obj = null; } return((float)obj); }
public override float GetScore(BaseContext c) { return(DistanceFromSpawnToTargetInRange.Evaluate(c as NPCHumanContext, this.range) ? 1f : 0.0f); }