45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using FSM;
|
|
using ZXKFramework;
|
|
namespace DongWuYiXue.QiGuanChaGuan
|
|
{
|
|
public class BingLiXinXiState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
this.Log("进入病例信息状态");
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe)
|
|
{
|
|
GameManager.Instance.uiManager.ShowUI<StartKaoHePanel>();
|
|
GameManager.Instance.uiManager.GetUI<StartKaoHePanel>().callback = () =>
|
|
{
|
|
fsm.ShowTip(0, true);
|
|
fsm.ShowCamera("病例信息1_Camera");
|
|
fsm.PlayClip("病例信息_TimeLine", () =>
|
|
{
|
|
fsm.nextState = true;
|
|
});
|
|
};
|
|
}
|
|
else if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
fsm.ShowTip(0, true);
|
|
fsm.ShowCamera("病例信息1_Camera");
|
|
fsm.PlayClip("病例信息_TimeLine", () =>
|
|
{
|
|
fsm.nextState = true;
|
|
});
|
|
}
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|