Esempio n. 1
0
 public void Die()
 {
     Player.Units.Remove(this);
     if (Capturing != null)
     {
         Capturing.StopCapture();
     }
 }
Esempio n. 2
0
 public void Wait()
 {
     if (Moved)
     {
         return;
     }
     if (Capturing != null)
     {
         Capturing.StopCapture();
     }
     Moved = true;
 }
Esempio n. 3
0
 public void Move(Vector2 position)
 {
     if (Moved)
     {
         return;
     }
     if (Capturing != null && position != Position)
     {
         Capturing.StopCapture();
     }
     Position = position;
     Moved    = true;
 }