52 lines
1.9 KiB
C#
52 lines
1.9 KiB
C#
using FSM;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class QianZhengZhongXian : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.KaoHe)
|
|
{
|
|
fsm.ShowTxtImgQuestion("垂直线标志——前正中线", 5, 0, 2, () => {
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
if (fsm.main_gameModel.modeType == ZXKFramework.ModeType.ShiXun)
|
|
{
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
GameManager.Instance.multiObjectController.RotateAllTo0(() => {
|
|
fsm.ShowArrow("点击“胸骨柄上缘的中点”", "胸骨柄上缘的中点", 0, 999);
|
|
fsm.Show_Light_EnableInteraction("胸骨柄上缘的中点");
|
|
});
|
|
fsm.InteractionDown("胸骨柄上缘的中点", obj => {
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("胸骨柄上缘的中点", null);
|
|
fsm.Hide_Unlight_DisableInteraction("胸骨柄上缘的中点");
|
|
fsm.PlayClip("前正中线动画1", () => {
|
|
fsm.ShowArrow("点击“剑突中央”", "剑突中央", 0, 999);
|
|
fsm.Show_Light_EnableInteraction("剑突中央");
|
|
});
|
|
});
|
|
fsm.InteractionDown("剑突中央", obj => {
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("剑突中央", null);
|
|
fsm.Hide_Unlight_DisableInteraction("剑突中央");
|
|
fsm.AddScore(0, 0.5f);
|
|
fsm.PlayClip("前正中线动画2", () => {
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
|
|
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|