最新修改提交

This commit is contained in:
高铎 2025-09-30 14:53:16 +08:00
parent 1111161bc8
commit 1d4a5ebe77
5 changed files with 18 additions and 11 deletions

View File

@ -417,6 +417,7 @@ namespace DongWuYiXue.DaoNiaoShu
else
{
AddScore(0, scoreId);
//GameManager.Instance.kaoheManager.AddScore(0, scoreId, null);
}
};
}

View File

@ -41,15 +41,16 @@ namespace DongWuYiXue.DaoNiaoShu
fsm.ShowSpeakPanel("操作后处理》操作后嘱咐", "先生,您好。已经将患宠膀胱内潴留的尿液通过导尿管已经引流出来了,下一步需要查找导致急性尿潴留的病因,然后再对因治疗",
new Vector3(730f, 85f), 2, 0, 2, c =>
{
fsm.PlayClip("操作后嘱咐_TimeLine", () =>
{
Game.Instance.sound.StopBGM();
fsm.PlayClip("好的_TimeLine", () =>
{
GameManager.Instance.uiManager.CloseUI<SpeakPanel>();
//fsm.PlayClip("操作后嘱咐_TimeLine", () =>
//{
Game.Instance.sound.StopBGM();
//fsm.PlayClip("好的_TimeLine", () =>
//{
fsm.Hide("男护士文字位置");
fsm.nextState = true;
});
});
//});
//});
});
}
}

View File

@ -23,9 +23,13 @@ namespace DongWuYiXue.DaoNiaoShu
}
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);
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)
//{

View File

@ -122,7 +122,8 @@ namespace DongWuYiXue.DaoNiaoShu
}
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;
sendAction?.Invoke(false);
}