void IStartRunner.Start() { GameLuaFileUtils.Start(); LuaManager.Init(); _luaState = LuaManager.luaState; OpenLibs(); _luaState.LuaSetTop(0); LuaCoroutine.Register(_luaState, CoroutineManager.longLive.behavior); ThreadSystem.RunAysn(Bind); }
void Start() { GameDebugConfig.openLog = GameDebugConfig.openLog && Application.isEditor; GameDebugConfig.debugTimer = GameDebugConfig.debugTimer && Application.isEditor; DontDestroyOnLoad(this.gameObject); if (Application.isEditor) { var dh = this.gameObject.GetComponent <DebugHelper>(); if (dh == null) { this.gameObject.AddComponent <DebugHelper>(); } } var fileUtil = new GameLuaFileUtils(); fileUtil.Init(delegate() { GameManager.Instance.Init(gameObject); }); }