Exemplo n.º 1
0
        protected override void OnEnter(Event e, GameFSM.State lastState)
        {
            var hero = ConfigManager.Instance.GetConfig <ConfHero>(107);

            if (hero != null)
            {
                Logger.Info(hero.ToString());
            }
            var action = ConfigManager.Instance.GetConfig <ConfAction>("Jump");

            if (action != null)
            {
                Logger.Info(action.ToString());
            }
            var heroSkin = ConfigManager.Instance.GetConfig <ConfHeroSkin>(2);

            if (heroSkin != null)
            {
                Logger.Info(heroSkin.ToString());
            }
            var confSetting = ConfigManager.Instance.GetConfig <ConfSettingConst>();

            if (confSetting != null)
            {
                Logger.Info(confSetting.ToString());
            }
        }
Exemplo n.º 2
0
 public override void Enter(Event e, GameFSM.State lastState)
 {
     if (lastState != null)
     {
         Logger.Info("{0} -> {1}", lastState != null ? lastState.GetType().Name : "NONE", GetType().Name);
     }
     base.Enter(e, lastState);
 }
Exemplo n.º 3
0
 protected override void OnEnter(Event e, GameFSM.State lastState)
 {
     ManagerMan.Instance.RegisterManager(PlatformManager.Instance);
     ManagerMan.Instance.RegisterManager(PathManager.Instance);
     ManagerMan.Instance.RegisterManager(WorksManager.Instance);
     ManagerMan.Instance.RegisterManager(ConfigManager.Instance);
     ManagerMan.Instance.InitAllManagers();
     ManagerMan.Instance.BootAllManagers();
     base.OnEnter(e, lastState);
 }
Exemplo n.º 4
0
 protected override void OnEnter(Event e, GameFSM.State lastState)
 {
     ConfigManager.Instance.SetSerializer(new ConfigSerializer());
     ManagerMan.Instance.RegisterManager(PathManager.Instance);
     ManagerMan.Instance.RegisterManager(PlatformManager.Instance);
     ManagerMan.Instance.RegisterManager(WorksManager.Instance);
     ManagerMan.Instance.RegisterManager(ModuleManager.Instance);
     ManagerMan.Instance.RegisterManager(ConfigManager.Instance);
     ManagerMan.Instance.InitAllManagers();
     ManagerMan.Instance.BootAllManagers();
     initWork = new StartAndWait(ManagerMan.Instance.BootLoadAllManagers());
     WorksManager.Instance.AddStartRightAwayWork(initWork);
 }
Exemplo n.º 5
0
 protected override void OnEnter(Event e, GameFSM.State lastState)
 {
     Content.Quit();
 }
Exemplo n.º 6
0
 public override void Exit(Event e, GameFSM.State nextState)
 {
     base.Exit(e, nextState);
 }