示例#1
0
        public override float GetScore(BaseContext c)
        {
            object obj;

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