最新修改提交
This commit is contained in:
parent
87ead324a9
commit
51ba5028bc
@ -27,6 +27,7 @@ namespace DongWuYiXue.QiGuanChaGuan
|
||||
{
|
||||
if (c.name.Equals("固定导管的高亮"))
|
||||
{
|
||||
fsm.HideTipBtn();
|
||||
fsm.HideArrow();
|
||||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||||
{
|
||||
|
||||
@ -17,16 +17,19 @@ namespace DongWuYiXue.QiGuanChaGuan
|
||||
base.Init(uictrl);
|
||||
scoreText = transform.FindFirst<Text>("Score");
|
||||
}
|
||||
public void SetScore(string addScore,string totalScore)
|
||||
public void SetScore(string addScore, string totalScore)
|
||||
{
|
||||
AddEffect(addScore,totalScore);
|
||||
AddEffect(addScore, totalScore);
|
||||
}
|
||||
void AddEffect(string score,string totalScore)
|
||||
void AddEffect(string score, string totalScore)
|
||||
{
|
||||
transform.FindFirst<TextMeshProUGUI>("AddScore_Txt").text = $"+{score}";
|
||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(false);
|
||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(true);
|
||||
scoreText.text = totalScore;
|
||||
if (!score.Equals("0"))
|
||||
{
|
||||
transform.FindFirst<TextMeshProUGUI>("AddScore_Txt").text = $"+{score}";
|
||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(false);
|
||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(true);
|
||||
scoreText.text = totalScore;
|
||||
}
|
||||
//switch (score)
|
||||
//{
|
||||
// case "1":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user