示例#1
0
 public POI CheckPOI(Vector3 _position, Unit _owner, POI.Type _type, object[] _paramteres)
 {
     _position = Normalize(_position);
     for (int i = 0; i < poi.Count; i++)
     {
         if (poi[i].position == _position && poi[i].Match(_owner, _type, _paramteres))
         {
             POI temp = poi[i];
             poi.RemoveAt(i);
             return(temp);
         }
     }
     return(null);
 }
示例#2
0
 public POI CheckPOI(Vector3 _position, Unit _owner, POI.Type _type)
 {
     _position = Normalize(_position);
     for (int i = 0; i < poi.Count; i++)
     {
         if (poi[i].position == _position && poi[i].Match(_owner, _type))
         {
             print(_type + "|" + poi[i].type);
             POI temp = poi[i];
             poi.RemoveAt(i);
             return(temp);
         }
     }
     return(null);
 }
示例#3
0
 public Search(ItemPatern _item)
 {
     type = POI.Type.stockpile;
     item = _item;
 }
示例#4
0
 public Search(POI.Type _type)
 {
     type = _type;
 }