From b18dcd4d1a5f794b9e58a88ea3620399d21af10f Mon Sep 17 00:00:00 2001 From: huqibin <762612145@qq.com> Date: Wed, 26 Feb 2025 19:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E4=B8=8A=E4=BC=A0=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Template/Scripts/CXX/Score/ScoreManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Template/Scripts/CXX/Score/ScoreManager.cs b/Assets/Template/Scripts/CXX/Score/ScoreManager.cs index b7acabe..07f2668 100644 --- a/Assets/Template/Scripts/CXX/Score/ScoreManager.cs +++ b/Assets/Template/Scripts/CXX/Score/ScoreManager.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -93,6 +94,7 @@ public class ScoreManager : MonoBehaviour { ScoreBase sb=scoreSubjectList.Find(a=>a.schemeId== subjectid); ScoreModel scoreModel = new ScoreModel(); + scoreModel.time = (DateTime.Now - GameManager.RunModelMgr.startTime).TotalSeconds.ToString(); scoreModel.score= sb.GetTotalScore(); var step=sb.GetStepScore(); foreach (var item in step)