Ejemplo n.º 1
0
        public override float GetScore(BaseContext c)
        {
            object obj;

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