30 lines
898 B
C#
30 lines
898 B
C#
using FSM;
|
|
using UnityEngine;
|
|
namespace YiLiao.XinFeiTingZhen
|
|
{
|
|
public class TingZhenXinYinFangFaState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
fsm.PlayBgm(0);
|
|
fsm.ShowTip(0);
|
|
fsm.ShowArrow("请点击犬的左前肢向前牵引半步", "左前肢", false, 0, 3);
|
|
fsm.Show_Light_EnableInteraction("左前肢");
|
|
fsm.InteractionDown("左前肢", obj => {
|
|
fsm.InteractionDown("左前肢", null);
|
|
fsm.Hide_Unlight_DisableInteraction("左前肢");
|
|
fsm.PlayClip("听诊心音方法", () => {
|
|
fsm.StopBgm();
|
|
fsm.nextState = true;
|
|
});
|
|
});
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|