コード例 #1
0
 public void KeepInBounds(decimal width, decimal height)
 {
     if (Location.IsOutOfBounds(width, height, out var dx, out var dy))
     {
         Location      = Location.Add(dx, dy);
         NextTarget    = NextTarget.Add(dx, dy);
         CurrentTarget = CurrentTarget.Add(dx, dy);
     }
 }