46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using FSM;
|
|
using Unity.VisualScripting.FullSerializer;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class XiongGuJiao : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.KaoHe)
|
|
{
|
|
fsm.ShowTxtImgQuestion("胸部体表标志——胸骨角", 2, 0, 2, () => {
|
|
fsm.ShowTxtQuestion("胸部体表标志——胸骨角——文字选择题", 0, 1, 2, () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.ShiXun)
|
|
{
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowArrow("点击“胸骨角”", "胸骨角", 0, 999);
|
|
fsm.Light_EnableInteraction("胸骨角");
|
|
fsm.InteractionDown("胸骨角", args => {
|
|
fsm.InteractionDown("胸骨角", null);
|
|
fsm.Unlight_DisableInteraction("胸骨角");
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.HideArrow();
|
|
fsm.PlayClip("胸骨角动画", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|