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