2025-09-09 15:06:44 +08:00
|
|
|
|
using FSM;
|
|
|
|
|
|
using ZXKFramework;
|
|
|
|
|
|
namespace DongWuYiXue.DaoNiaoShu
|
|
|
|
|
|
{
|
|
|
|
|
|
public class PuJinState : FsmState<FSMManager>
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void OnStateEnter()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateEnter();
|
|
|
|
|
|
this.Log("<22><><EFBFBD><EFBFBD><EFBFBD>̽<EFBFBD>״̬");
|
|
|
|
|
|
fsm.ShowCamera("<22>̽<EFBFBD>1_Camera");
|
|
|
|
|
|
fsm.ShowTip(0);
|
|
|
|
|
|
fsm.PlayBgm(0);
|
|
|
|
|
|
fsm.ShowArrow("<22><><EFBFBD><EFBFBD>ҽ<EFBFBD>õ浥", "ҽ<>õ浥");
|
|
|
|
|
|
fsm.Light_EnableInteraction("ҽ<>õ浥");
|
2025-09-15 16:33:25 +08:00
|
|
|
|
fsm.ShowTipBtn(() =>
|
|
|
|
|
|
{
|
|
|
|
|
|
fsm.Light_EnableInteraction("ҽ<>õ浥", true);
|
|
|
|
|
|
fsm.ShowArrow("<22><><EFBFBD><EFBFBD>ҽ<EFBFBD>õ浥", "ҽ<>õ浥", 0, 0, 5, true);
|
|
|
|
|
|
},2);
|
2025-09-09 15:06:44 +08:00
|
|
|
|
fsm.InteractionDown("ҽ<>õ浥", c =>
|
|
|
|
|
|
{
|
2025-09-15 16:33:25 +08:00
|
|
|
|
fsm.HideTipBtn();
|
2025-09-09 15:06:44 +08:00
|
|
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
|
|
|
|
{
|
|
|
|
|
|
fsm.AddScore(3, 0);
|
|
|
|
|
|
}
|
2025-09-15 16:33:25 +08:00
|
|
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
|
|
|
|
|
{
|
|
|
|
|
|
fsm.AddScore(3, 0);
|
|
|
|
|
|
}
|
2025-09-09 15:06:44 +08:00
|
|
|
|
fsm.Unlight_DisableInteraction("ҽ<>õ浥");
|
|
|
|
|
|
fsm.Hide("ҽ<>õ浥");
|
|
|
|
|
|
fsm.HideArrow();
|
|
|
|
|
|
fsm.ShowCamera("<22>̽<EFBFBD>2_Camera");
|
|
|
|
|
|
fsm.PlayClip("<22>̽<EFBFBD>_TimeLine", () =>
|
|
|
|
|
|
{
|
2025-09-15 16:33:25 +08:00
|
|
|
|
fsm.nextState = true;
|
2025-09-09 15:06:44 +08:00
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
public override void OnStateStay()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateStay();
|
|
|
|
|
|
}
|
|
|
|
|
|
public override void OnStateExit()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnStateExit();
|
2025-09-15 16:33:25 +08:00
|
|
|
|
fsm.HideTipBtn();
|
2025-09-09 15:06:44 +08:00
|
|
|
|
fsm.Unlight_DisableInteraction("ҽ<>õ浥");
|
|
|
|
|
|
fsm.HideArrow();
|
2025-09-15 16:33:25 +08:00
|
|
|
|
fsm.nextState = false;
|
2025-09-09 15:06:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|