コード例 #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
ファイル: Search.cs プロジェクト: grzegorzsabiniok/PO-Projekt
 public Search(ItemPatern _item)
 {
     type = POI.Type.stockpile;
     item = _item;
 }
コード例 #4
0
ファイル: Search.cs プロジェクト: grzegorzsabiniok/PO-Projekt
 public Search(POI.Type _type)
 {
     type = _type;
 }