Mathf.Clamp(값,최소,최대)
Debug.Log(Mathf.Clamp(10, 1, 3));
//// Clamps the value 10 to be between 1 and 3.
// prints 3 to the console
값을 최소에서 최대값 사이로 고정시켜주는 함수이다
Mathf.Clamp(값,최소,최대)
Debug.Log(Mathf.Clamp(10, 1, 3));
//// Clamps the value 10 to be between 1 and 3.
// prints 3 to the console
값을 최소에서 최대값 사이로 고정시켜주는 함수이다