IEnumerator Start() { if (!SceneService.persistentSceneLoaded) { yield return(SceneService.LoadPersistentScene()); } started = true; }
IEnumerator InitScriptWithLuaVM() { if (!SceneService.persistentSceneLoaded) { yield return(SceneService.LoadPersistentScene()); } InitScript(); }
public void Register(XLua.LuaEnv luaState) { _instance = this; luaState.Global.Set("SceneService", this); }