45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
|
|
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("ҽ<>õ浥");
|
|||
|
|
fsm.InteractionDown("ҽ<>õ浥", c =>
|
|||
|
|
{
|
|||
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|||
|
|
{
|
|||
|
|
fsm.AddScore(3, 0);
|
|||
|
|
}
|
|||
|
|
fsm.Unlight_DisableInteraction("ҽ<>õ浥");
|
|||
|
|
fsm.Hide("ҽ<>õ浥");
|
|||
|
|
fsm.HideArrow();
|
|||
|
|
fsm.ShowCamera("<22>̽<EFBFBD>2_Camera");
|
|||
|
|
fsm.PlayClip("<22>̽<EFBFBD>_TimeLine", () =>
|
|||
|
|
{
|
|||
|
|
fsm.nextState = true;
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
public override void OnStateStay()
|
|||
|
|
{
|
|||
|
|
base.OnStateStay();
|
|||
|
|
}
|
|||
|
|
public override void OnStateExit()
|
|||
|
|
{
|
|||
|
|
base.OnStateExit();
|
|||
|
|
fsm.Unlight_DisableInteraction("ҽ<>õ浥");
|
|||
|
|
fsm.HideArrow();
|
|||
|
|
fsm.nextState = false;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|