예제 #1
0
        public void Init()
        {
            actorService = new ActorService();
            actorService.Init();

            sceneService = new SceneService();
            sceneService.Init();

            skillService = new SkillService();
            skillService.Init();

            storyService = new StoryService();
            storyService.Init();
        }
예제 #2
0
        public static void InitGame()
        {
            GameLog.SetPrintHandler(UnityEngine.Debug.LogFormat);

            gameConfig           = new GameConfig();
            gameConfig.tablePath = Application.streamingAssetsPath;

            procedureFactory = new ProcedureFactory();
            procedureFactory.Register("LoadScene", new LoadProcedure());
            procedureFactory.Register("MainScene", new MainProcedure());
            procedureFactory.Register("GameScene", new GameProcedure());

            procedureSrv = new ProcedureService();
            procedureSrv.Init();

            sceneSrv = new SceneService();
            sceneSrv.Init();
        }