fix Q25
遊戲1,遊戲2的報表
This commit is contained in:
parent
5f4debfd7f
commit
40e56630e6
@ -217,6 +217,9 @@ public class ServerGameTalkingPanel : MonoBehaviour
|
|||||||
{
|
{
|
||||||
playChatText.text = "";
|
playChatText.text = "";
|
||||||
statusText.text = "倒計時 : <color=\"red\">" + gameTimeCountdownSecVal.ToString() + "</color>s";
|
statusText.text = "倒計時 : <color=\"red\">" + gameTimeCountdownSecVal.ToString() + "</color>s";
|
||||||
|
//打開時更新數值
|
||||||
|
int[] scores = { GlobalData.VIRTUE_SCORE, GlobalData.KARMA_SCORE, GlobalData.SINCERITY_SCORE };
|
||||||
|
customReportScript.SetAllCustomerValues(scores);
|
||||||
StartCoroutine(GameTimeCountdown());
|
StartCoroutine(GameTimeCountdown());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,6 +65,9 @@ public class ServerGameTypingPanel : MonoBehaviour
|
|||||||
if (step == 3)
|
if (step == 3)
|
||||||
{
|
{
|
||||||
checkText.text = result;
|
checkText.text = result;
|
||||||
|
//打開時更新數值
|
||||||
|
int[] scores = { GlobalData.VIRTUE_SCORE, GlobalData.KARMA_SCORE, GlobalData.SINCERITY_SCORE };
|
||||||
|
customReportScript.SetAllCustomerValues(scores);
|
||||||
StartCoroutine(GameTimeCountdown());
|
StartCoroutine(GameTimeCountdown());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,9 +57,14 @@ public class CustomerReportSystem : MonoBehaviour
|
|||||||
// 私有變數
|
// 私有變數
|
||||||
private int[] customerValues = new int[3];
|
private int[] customerValues = new int[3];
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
//改在Awake時設定預設
|
||||||
|
InitializeCustomerReport();
|
||||||
|
}
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
InitializeCustomerReport();
|
|
||||||
SetupEventListeners();
|
SetupEventListeners();
|
||||||
UpdateCustomerValueDisplays();
|
UpdateCustomerValueDisplays();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user