Exemplo n.º 1
0
 public static Vector2 PointInRect(this System.Random self, Rect rect)
 {
     return(new Vector2(self.RangeInclusive(rect.xMin, rect.xMax), self.RangeInclusive(rect.yMin, rect.yMax)));
 }
Exemplo n.º 2
0
 public static int RangeInclusive(int min, int max)
 {
     return(SharedRandom.RangeInclusive(min, max));
 }