Random.Range(min, max) 함수의 max값에 대해..
함수 파라미터가 int일 경우는 max값이 안나오는 게 맞구요
static function Range (min : int, max : int) : int
Description -
Returns a random integer number between min [inclusive] and max [exclusive] (Read Only).
float일 경우에는 max값이 나옵니다.
static function Range (min : float, max : float) : float
Description -
Returns a random float number between and min [inclusive] and max [inclusive] (Read Only).
'Unity3D > Tips' 카테고리의 다른 글
Max Texture Size of iOS Devices (0) | 2013.06.14 |
---|---|
게임 중 일시정지 하기 (0) | 2013.05.30 |
유니티 소소한 TIP (0) | 2013.04.05 |
How to get SceneView Camera? (0) | 2013.03.25 |
EditorWindow에서 마우스/키보드 입력 체크 (2) | 2013.03.22 |