22 lines
348 B
Markdown
Raw Permalink Normal View History

2025-03-26 00:02:56 +08:00
#unity/日常积累
public static float Min (float a, float b);
public static float Min (params float[] values);
## 描述
返回两个或更多值中的最小值。
``` cs
using UnityEngine;
public class ScriptExample : MonoBehaviour
{
void Start()
{
// prints 1.2
Debug.Log(Mathf.Min(1.2f, 2.4f));
}
}
```