public override void Execute(INotification notification)
    {
        base.Execute(notification);
        OneMsgParams <ushort> mapsize = notification.Body as OneMsgParams <ushort>;

        if (mapsize != null)
        {
            GameFacade gameFacade = Facade as GameFacade;
            //各种战斗判断
            BattleManager.Instance.SetMapRect(mapsize.parameter, mapsize.parameter);
            gameFacade.sceneStateController.SetStateAsync(new BattleSceneState(gameFacade.sceneStateController, BattleManager.Instance), "Battle");
        }
    }
示例#2
0
 public void Push(OneMsgParams <T> cmdParam)
 {
     _Params.Push(cmdParam);
 }