[Unity游戏开发]常用类之Time类

常用属性
属性 说明
time 从游戏开始到现在所用的时间(只读)
deltaTime 获取上一次Update()方法执行的时间到本次执行
Update() 方法时间的差值
fixedDeltaTime 在物理和其他固定帧速率进行更新上一帧所消耗的时间, 以秒计算
timeScale 表示时间缩放,正常时间

猜你喜欢

转载自blog.csdn.net/Alina_catty/article/details/79377850