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("<22><><EFBFBD><EFBFBD>֪ʶ<D6AA>ع<EFBFBD>״̬");
|
|||
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|