Beispiel #1
0
 public void RegisterClick()
 {
     //if (inMovementRange == true)
     if (UnitMovement.currentActiveUnit != null)
     {
         UnitMovement.MoveUnit(this);
     }
     else if (pairedObject != null)
     {
         pairedObject.RegisterClick();
     }
     else if (pairedUnit != null)
     {
         pairedUnit.RegisterClick();
     }
 }