diff --git a/Assets/TEngine/Runtime/GameFramework/GameTime.cs b/Assets/TEngine/Runtime/GameFramework/GameTime.cs index 3999168e..0fe47e0a 100644 --- a/Assets/TEngine/Runtime/GameFramework/GameTime.cs +++ b/Assets/TEngine/Runtime/GameFramework/GameTime.cs @@ -4,20 +4,38 @@ namespace TEngine { /// /// 游戏时间。 - /// 统一封装调用。 + /// 提供从Unity获取时间信息的接口。 /// public static class GameTime { + /// + /// 此帧开始时的时间(只读)。 + /// public static float time; + /// + /// 从上一帧到当前帧的间隔(秒)(只读)。 + /// public static float deltaTime; + /// + /// timeScale从上一帧到当前帧的独立时间间隔(以秒为单位)(只读)。 + /// public static float unscaledDeltaTime; + /// + /// 执行物理和其他固定帧速率更新(如MonoBehavior的MonoBehaviour.FixedUpdate)的时间间隔(以秒为单位)。 + /// public static float fixedDeltaTime; + /// + /// 自游戏开始以来的总帧数(只读)。 + /// public static float frameCount; + /// + /// timeScale此帧的独立时间(只读)。这是自游戏开始以来的时间(以秒为单位)。 + /// public static float unscaledTime; public static void StartFrame()