From 7ff74bb7472e1baafd53b8dee591eb9a83d28764 Mon Sep 17 00:00:00 2001
From: ALEXTANG <574809918@qq.com>
Date: Mon, 18 Sep 2023 16:40:51 +0800
Subject: [PATCH] Update GameTime.cs
---
.../TEngine/Runtime/GameFramework/GameTime.cs | 20 ++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
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()