添加分数数据模型

This commit is contained in:
YangHua 2024-09-03 10:09:46 +08:00
parent 8c57515bb2
commit 7ab75d4907
4 changed files with 32 additions and 1 deletions

View File

@ -537,7 +537,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 15.8, y: -9.5} m_AnchoredPosition: {x: 17.6, y: -8.6}
m_SizeDelta: {x: 34.2788, y: 38.1399} m_SizeDelta: {x: 34.2788, y: 38.1399}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &5752134637232285867 --- !u!222 &5752134637232285867

View File

@ -0,0 +1,18 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class ScoreModel
{
public string time;
public string score;
public List<ScoreInfo> pointList = new List<ScoreInfo>();
}
[Serializable]
public class ScoreInfo
{
public string point;
public string pointInfo;
public string pointScore;
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 94b1dfb6fb10c1b4b95c33a6beb698c3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -10,6 +10,8 @@ public class UI_PracticeCompletedPanel : BasePanel
public RectTransform content; public RectTransform content;
public void Init() public void Init()
{ {
//ScoreManager.instance.GetScore();
//ScoreManager.instance.GetStepScore();
UI_PracticeInfoItem temp = Instantiate(piiPrefab, content); UI_PracticeInfoItem temp = Instantiate(piiPrefab, content);
GetControl<TextMeshProUGUI>("UsedTimesRes").text = "00:555"; GetControl<TextMeshProUGUI>("UsedTimesRes").text = "00:555";
GetControl<TextMeshProUGUI>("ScoreRes").text = "123"; GetControl<TextMeshProUGUI>("ScoreRes").text = "123";