Time类用来控制时间。
Time.deltaTime; //从上一帧到当前结束,这两帧之间的时间间隔。
transform.Rotate(Vector3.up,Time.delteTime*30f); //让当前游戏对象每秒旋转30度(精确地变化)
Time.timeScale; //表示时间流逝的快慢
1-表示正常时间流逝
2-时间流逝加快,是正常速度的两倍
0-表示时间停止,游戏暂停
Mathf数学类
Mathf.Abs(); //求绝对值
Mathf.max(,); //可以写两个或多个int、float类型的参数
Mathf.min(,); //求最小值
Mathf.Sin(); //求正弦值
Mathf.Cos(); //求余弦值
Mathf.pi;
Mathf.Sqrt(); //求平方根