46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using FSM;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class XiongGuBing : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
LLM llm = ChatAI.Instance.m_ChatSettings.m_ChatModel;
|
|
ChatZxkAI chatZxkAI = llm as ChatZxkAI;
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.KaoHe)
|
|
{
|
|
chatZxkAI.mode = "考核模式";
|
|
fsm.ShowTxtImgQuestion("胸部体表标志——胸骨柄", 0, 0, 2, () => {
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.ShiXun)
|
|
{
|
|
chatZxkAI.mode = "实训模式";
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowArrow("点击“胸骨柄”", "胸骨柄", 0, 999);
|
|
fsm.Light_EnableInteraction("胸骨柄");
|
|
fsm.InteractionDown("胸骨柄", args => {
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.Unlight_DisableInteraction("胸骨柄");
|
|
fsm.InteractionDown("胸骨柄", null);
|
|
fsm.HideArrow();
|
|
fsm.PlayClip("胸骨柄动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|