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); }
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); }
public Search(ItemPatern _item) { type = POI.Type.stockpile; item = _item; }
public Search(POI.Type _type) { type = _type; }