最新修改提交
This commit is contained in:
parent
1111161bc8
commit
1d4a5ebe77
@ -417,6 +417,7 @@ namespace DongWuYiXue.DaoNiaoShu
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddScore(0, scoreId);
|
AddScore(0, scoreId);
|
||||||
|
//GameManager.Instance.kaoheManager.AddScore(0, scoreId, null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,15 +41,16 @@ namespace DongWuYiXue.DaoNiaoShu
|
|||||||
fsm.ShowSpeakPanel("操作后处理》操作后嘱咐", "先生,您好。已经将患宠膀胱内潴留的尿液通过导尿管已经引流出来了,下一步需要查找导致急性尿潴留的病因,然后再对因治疗",
|
fsm.ShowSpeakPanel("操作后处理》操作后嘱咐", "先生,您好。已经将患宠膀胱内潴留的尿液通过导尿管已经引流出来了,下一步需要查找导致急性尿潴留的病因,然后再对因治疗",
|
||||||
new Vector3(730f, 85f), 2, 0, 2, c =>
|
new Vector3(730f, 85f), 2, 0, 2, c =>
|
||||||
{
|
{
|
||||||
fsm.PlayClip("操作后嘱咐_TimeLine", () =>
|
GameManager.Instance.uiManager.CloseUI<SpeakPanel>();
|
||||||
{
|
//fsm.PlayClip("操作后嘱咐_TimeLine", () =>
|
||||||
|
//{
|
||||||
Game.Instance.sound.StopBGM();
|
Game.Instance.sound.StopBGM();
|
||||||
fsm.PlayClip("好的_TimeLine", () =>
|
//fsm.PlayClip("好的_TimeLine", () =>
|
||||||
{
|
//{
|
||||||
fsm.Hide("男护士文字位置");
|
fsm.Hide("男护士文字位置");
|
||||||
fsm.nextState = true;
|
fsm.nextState = true;
|
||||||
});
|
//});
|
||||||
});
|
//});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,10 +22,14 @@ namespace DongWuYiXue.DaoNiaoShu
|
|||||||
AddEffect(addScore, totalScore);
|
AddEffect(addScore, totalScore);
|
||||||
}
|
}
|
||||||
void AddEffect(string score, string totalScore)
|
void AddEffect(string score, string totalScore)
|
||||||
|
{
|
||||||
|
if (!score.Equals("0"))
|
||||||
{
|
{
|
||||||
transform.FindFirst<TextMeshProUGUI>("AddScore_Txt").text = $"+{score}";
|
transform.FindFirst<TextMeshProUGUI>("AddScore_Txt").text = $"+{score}";
|
||||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(false);
|
transform.FindFirst("AddScoreAnim").gameObject.SetActive(false);
|
||||||
transform.FindFirst("AddScoreAnim").gameObject.SetActive(true);
|
transform.FindFirst("AddScoreAnim").gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
scoreText.text = totalScore;
|
scoreText.text = totalScore;
|
||||||
//switch (score)
|
//switch (score)
|
||||||
//{
|
//{
|
||||||
|
|||||||
@ -122,7 +122,8 @@ namespace DongWuYiXue.DaoNiaoShu
|
|||||||
}
|
}
|
||||||
else if (str.Contains("error") || string.IsNullOrEmpty(str))
|
else if (str.Contains("error") || string.IsNullOrEmpty(str))
|
||||||
{
|
{
|
||||||
GameManager.Instance.fsm.AddScore(0, id);
|
GameManager.Instance.kaoheManager.AddScore(0, id, null);
|
||||||
|
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = false });
|
||||||
userInput.text = tipTxt;
|
userInput.text = tipTxt;
|
||||||
sendAction?.Invoke(false);
|
sendAction?.Invoke(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user