diff --git a/Assets/_SXDMystery/Scripts/Base/GameManager.cs b/Assets/_SXDMystery/Scripts/Base/GameManager.cs index c6983432..dc1dce54 100644 --- a/Assets/_SXDMystery/Scripts/Base/GameManager.cs +++ b/Assets/_SXDMystery/Scripts/Base/GameManager.cs @@ -418,7 +418,10 @@ public class GameManager : MonoBehaviour private void Update() { - curGameTime += Time.deltaTime; + if (gameState != GameState.None) + { + curGameTime += Time.deltaTime; + } if (Input.GetKeyDown(KeyCode.Q)) { //TaskManager.Ins.StopTask(true); diff --git a/Assets/_SXDMystery/Scripts/Base/HttpServer.cs b/Assets/_SXDMystery/Scripts/Base/HttpServer.cs index 99beca26..0922a6b8 100644 --- a/Assets/_SXDMystery/Scripts/Base/HttpServer.cs +++ b/Assets/_SXDMystery/Scripts/Base/HttpServer.cs @@ -261,7 +261,7 @@ public class HttpServer : MonoBehaviour private int GetGameTotalTime() { - return Mathf.FloorToInt(GameManager.Ins.vistEnd); // 举例:1 小时(秒) + return Mathf.FloorToInt(GameManager.Ins.vistEnd+5*60); // 举例:1 小时(秒) } private int GetCurrentPlayTime()