46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using FSM;
|
|
using ZXKFramework;
|
|
namespace DongWuYiXue.DaoNiaoShu
|
|
{
|
|
public class TuMoKangShengSuRuanGaoState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
this.Log("进入涂抹抗生素软膏状态");
|
|
fsm.ShowCamera("涂抹抗生素软膏1_Camera");
|
|
fsm.ShowTip(0);
|
|
fsm.PlayBgm(0);
|
|
fsm.Light_EnableInteraction("抗生素软膏");
|
|
fsm.ShowArrow("点击抗生素软膏", "抗生素软膏");
|
|
fsm.InteractionDown("抗生素软膏", c =>
|
|
{
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.AddScore(3, 0);
|
|
}
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("抗生素软膏", null);
|
|
fsm.Unlight_DisableInteraction("抗生素软膏");
|
|
fsm.ShowCamera("涂抹抗生素软膏2_Camera");
|
|
fsm.PlayClip("涂抹抗生素软膏_TimeLine", () =>
|
|
{
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.HideArrow();
|
|
fsm.InteractionDown("抗生素软膏", null);
|
|
fsm.Unlight_DisableInteraction("抗生素软膏");
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|