30 lines
867 B
C#
30 lines
867 B
C#
using FSM;
|
|
using ZXKFramework;
|
|
namespace DongWuYiXue.DaoNiaoShu
|
|
{
|
|
public class ZhiShiHuiGuState : FsmState<FSMManager>
|
|
{
|
|
public override void OnStateEnter()
|
|
{
|
|
base.OnStateEnter();
|
|
this.Log("½øÈë֪ʶ»Ø¹Ë״̬");
|
|
fsm.ShowCamera("StartCamera");
|
|
if (fsm.main_gameModel.modeType == ModeType.KaoHe) fsm.nextState = true;
|
|
if (fsm.main_gameModel.modeType == ModeType.ShiXun)
|
|
{
|
|
GameManager.Instance.uiManager.GetUI<BookPanel>().ShowBook("1");
|
|
}
|
|
}
|
|
public override void OnStateStay()
|
|
{
|
|
base.OnStateStay();
|
|
}
|
|
public override void OnStateExit()
|
|
{
|
|
base.OnStateExit();
|
|
GameManager.Instance.uiManager.CloseUI<BookPanel>();
|
|
fsm.nextState = false;
|
|
}
|
|
}
|
|
}
|