Example #1
0
        public void LoadGame()
        {
            fsmGameLoad = new FSMGameLoad(null);
            fsmGameLoad.AddState(new StateLoadOrgScene((int)CrossRoadGameState.LoadOrgScene, fsmGameLoad));

            fsmGameLoad.Run();
            fsmGameLoad.GotoState((int)CrossRoadGameState.LoadOrgScene);
        }
        public void Init()
        {
            fsmLoad = new FSMGameLoad();
            fsmLoad.AddState(new StateServerForGame((int)GameLoaderState.Server, fsmLoad));
            fsmLoad.AddState(new StateLoadOrgSceneForGame((int)GameLoaderState.LoadOrgScene, fsmLoad));
            fsmLoad.AddState(new StateLoadPartSceneForGame((int)GameLoaderState.LoadPartScenes, fsmLoad));
            fsmLoad.AddState(new StateLoadAnimalInLittleZooForGame((int)GameLoaderState.LoadAnimalInLittleZoo, fsmLoad));

            fsmLoad.SetDefaultState((int)GameLoaderState.Server);
        }