Liberi
An exergame built for kids with CP!
Main Page
Classes
Files
File List
RectUtils.cs
1
using
UnityEngine
;
2
using
System
.Collections;
3
4
public
static
class
RectUtils
5
{
9
public
static
Vector3 RandomPointInBounds (
this
Rect rect)
10
{
11
Vector3 point =
new
Vector3();
12
13
point.x = Random.Range(rect.xMin, rect.xMax);
14
point.y = Random.Range(rect.yMin, rect.yMax);
15
16
return
point;
17
}
18
}
System
UnityEngine
Liberi
Assets
Scripts
Core
RectUtils.cs
Generated by
1.8.10