遊戲1,遊戲2的報表
This commit is contained in:
chiyulin0314 2025-11-20 04:41:13 +08:00
parent 5f4debfd7f
commit 40e56630e6
3 changed files with 12 additions and 1 deletions

View File

@ -217,6 +217,9 @@ public class ServerGameTalkingPanel : MonoBehaviour
{
playChatText.text = "";
statusText.text = "倒計時 : <color=\"red\">" + gameTimeCountdownSecVal.ToString() + "</color>s";
//打開時更新數值
int[] scores = { GlobalData.VIRTUE_SCORE, GlobalData.KARMA_SCORE, GlobalData.SINCERITY_SCORE };
customReportScript.SetAllCustomerValues(scores);
StartCoroutine(GameTimeCountdown());
}
}

View File

@ -65,6 +65,9 @@ public class ServerGameTypingPanel : MonoBehaviour
if (step == 3)
{
checkText.text = result;
//打開時更新數值
int[] scores = { GlobalData.VIRTUE_SCORE, GlobalData.KARMA_SCORE, GlobalData.SINCERITY_SCORE };
customReportScript.SetAllCustomerValues(scores);
StartCoroutine(GameTimeCountdown());
}
}

View File

@ -57,9 +57,14 @@ public class CustomerReportSystem : MonoBehaviour
// 私有變數
private int[] customerValues = new int[3];
private void Awake()
{
//改在Awake時設定預設
InitializeCustomerReport();
}
private void Start()
{
InitializeCustomerReport();
SetupEventListeners();
UpdateCustomerValueDisplays();
}