// 这里必须要等待资源管理模块加载Lua AB包以后才能初始化 public void OnLoadUpdateLua() { if (luaEnv != null) { luaUpdater = gameObject.GetComponent <LuaUpdater>(); if (luaUpdater == null) { luaUpdater = gameObject.AddComponent <LuaUpdater>(); } luaUpdater.OnInit(luaEnv); } }
// 这里必须要等待资源管理模块加载Lua AB包以后才能初始化 public void OnInit() { if (luaEnv != null) { LoadScript(commonMainScriptName); luaUpdater = gameObject.GetComponent <LuaUpdater>(); if (luaUpdater == null) { luaUpdater = gameObject.AddComponent <LuaUpdater>(); } luaUpdater.OnInit(luaEnv); } }
// 这里必须要等待资源管理模块加载Lua AB包以后才能初始化 public void OnInit() { if (luaEnv != null) { LoadScript(commonMainScriptName); luaUpdater = gameObject.GetComponent <LuaUpdater>(); if (luaUpdater == null) { luaUpdater = gameObject.AddComponent <LuaUpdater>(); } luaUpdater.OnInit(luaEnv); #if UNITY_EDITOR XLuaManager_EditorHelper.InitEditor(Exit); #endif } }
// 这里必须要等待资源管理模块加载Lua AB包以后才能初始化 public void OnInit() { if (luaEnv != null) { LoadScript(commonMainScriptName); luaUpdater = gameObject.GetComponent <LuaUpdater>(); if (luaUpdater == null) { luaUpdater = gameObject.AddComponent <LuaUpdater>(); } luaUpdater.OnInit(luaEnv); #if UNITY_EDITOR UnityEditor.EditorApplication.playmodeStateChanged -= OnEditorPalyModeChanged; UnityEditor.EditorApplication.playmodeStateChanged += OnEditorPalyModeChanged; #endif } }
void InitUpdate() { mLuaUpdater = gameObject.AddComponent <LuaUpdater>(); mLuaUpdater.OnInit(mLuaEnv); }