86 lines
2.9 KiB
C#
86 lines
2.9 KiB
C#
using FSM;
|
||
using ZXKFramework;
|
||
namespace DongWuYiXue.QiGuanChaGuan
|
||
{
|
||
public class CeSuanDaoGuanChaRuChangDuState : FsmState<FSMManager>
|
||
{
|
||
public override void OnStateEnter()
|
||
{
|
||
base.OnStateEnter();
|
||
this.Log("쏵흙꿎炬돔밗꿨흙낀똑榴檄");
|
||
fsm.ShowCamera("꿎炬돔밗꿨흙낀똑1_Camera");
|
||
fsm.ShowTip(0);
|
||
fsm.PlayBgm(0);
|
||
fsm.Light("12mm폭밗돔밗");
|
||
fsm.EnableInteraction("12폭밗돔밗쇱꿴폭쵱昑");
|
||
|
||
fsm.ShowTipBtn(() =>
|
||
{
|
||
fsm.Light_EnableInteraction("12mm폭밗돔밗", true);
|
||
}, 2);
|
||
fsm.InteractionDown("12폭밗돔밗쇱꿴폭쵱昑", c =>
|
||
{
|
||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||
{
|
||
fsm.AddScore(5, 0);
|
||
}
|
||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||
{
|
||
fsm.AddScore(4, 0);
|
||
}
|
||
fsm.Unlight("12mm폭밗돔밗");
|
||
fsm.DisableInteraction("12폭밗돔밗쇱꿴폭쵱昑");
|
||
fsm.ShowCamera("꿎炬돔밗꿨흙낀똑2_Camera");
|
||
|
||
fsm.PlayClip("꿎炬돔밗꿨흙낀똑1_TimeLine", () =>
|
||
{
|
||
fsm.ShowTip(1);
|
||
fsm.PlayBgm(1);
|
||
fsm.Show("미땍<EBAFB8>깃션貫零");
|
||
fsm.Light_EnableInteraction("미땍<EBAFB8>깃션貫零");
|
||
fsm.ShowArrow("헝듐샌미땍<EBAFB8>깃션貫零", "미땍<EBAFB8>깃션貫零");
|
||
fsm.ShowTipBtn(() =>
|
||
{
|
||
fsm.Show("미땍<EBAFB8>깃션貫零");
|
||
fsm.Light_EnableInteraction("미땍<EBAFB8>깃션貫零", true);
|
||
fsm.ShowArrow("헝듐샌미땍<EBAFB8>깃션貫零", "미땍<EBAFB8>깃션貫零", 0, 0, 5, true);
|
||
}, 2);
|
||
});
|
||
});
|
||
|
||
fsm.InteractionDown("미땍<EBAFB8>깃션貫零", c =>
|
||
{
|
||
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
||
{
|
||
fsm.AddScore(5, 1);
|
||
}
|
||
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
||
{
|
||
fsm.AddScore(4, 1);
|
||
}
|
||
fsm.HideArrow();
|
||
fsm.Unlight_DisableInteraction("미땍<EBAFB8>깃션貫零");
|
||
fsm.Hide("미땍<EBAFB8>깃션貫零");
|
||
fsm.PlayClip("꿎炬돔밗꿨흙낀똑2_TimeLine", () =>
|
||
{
|
||
fsm.nextState = true;
|
||
});
|
||
});
|
||
}
|
||
public override void OnStateStay()
|
||
{
|
||
base.OnStateStay();
|
||
}
|
||
public override void OnStateExit()
|
||
{
|
||
base.OnStateExit();
|
||
fsm.HideArrow();
|
||
fsm.Hide("미땍<EBAFB8>깃션貫零");
|
||
fsm.Unlight("12mm폭밗돔밗");
|
||
fsm.DisableInteraction("12폭밗돔밗쇱꿴폭쵱昑");
|
||
fsm.Unlight_DisableInteraction("미땍<EBAFB8>깃션貫零");
|
||
fsm.nextState = false;
|
||
}
|
||
}
|
||
}
|