Пример #1
0
 public void update()
 {
     if (this.target.isValied)
     {
         this.moveToTarget();
     }
     else
     {
         this.findOtherTarget();
         target.close();
         target = null;
     }
 }
Пример #2
0
 public void setTarget(Ship ship)
 {
     this.target = new TezValider <Ship>(ship.valider);
 }