public XluaMain() { XLuaEnv.AddLoader(new AssetBundleLoader()); XLuaEnv.onDispose += LuaDispose; XLuaEnv.DoString("require 'Main'" + " Awake()"); }
private void LuaDispose() { XLuaEnv.DoString("require 'Main'" + "OnDispose()"); }