2025-06-26 14:07:29 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
|
|
public class KaoHeChengJi : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
public Text DeFen1;
|
|
|
|
|
|
public Text DeFen2;
|
|
|
|
|
|
public Text DeFen3;
|
|
|
|
|
|
public Text DeFen4;
|
|
|
|
|
|
public Text ZongFen;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Start()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
GetScore();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ContextMenu("<22><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>")]
|
|
|
|
|
|
public void GetScore()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var v= ScoreController.Instance.GetCurScoreData();
|
|
|
|
|
|
foreach (var c in v) {
|
|
|
|
|
|
Debug.Log(c);
|
|
|
|
|
|
switch (c.Key)
|
|
|
|
|
|
{
|
|
|
|
|
|
case "<22><>ѡ<EFBFBD><D1A1>":
|
|
|
|
|
|
DeFen1.text = c.Value.value.ToString();
|
|
|
|
|
|
break;
|
|
|
|
|
|
case "<22><>ά<EFBFBD><CEAC><EFBFBD>쿼<EFBFBD><ECBFBC>":
|
2025-06-30 18:18:42 +08:00
|
|
|
|
DeFen3.text = c.Value.value.ToString();
|
2025-06-26 14:07:29 +08:00
|
|
|
|
break;
|
|
|
|
|
|
case "<22>ۺϼ<DBBA><CFBC>㿼<EFBFBD><E3BFBC>":
|
2025-06-30 18:18:42 +08:00
|
|
|
|
DeFen2.text = c.Value.value.ToString();
|
2025-06-26 14:07:29 +08:00
|
|
|
|
break;
|
|
|
|
|
|
case "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>":
|
|
|
|
|
|
DeFen4.text = c.Value.value.ToString();
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
var zongfen = ScoreController.Instance.GetCurScore();
|
|
|
|
|
|
Debug.Log(zongfen);
|
|
|
|
|
|
ZongFen.text = zongfen.ToString();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|