private void OnComplete(object sender, AssetsProxy assetsProxy, object data) { UILoader loader = ( UILoader )sender; UILoadCallback callback = ( UILoadCallback )loader.data; callback.Invoke(); }
private static void OnLoadComplete(object sender, AssetsProxy assetsproxy, object data) { _completeHandler?.Invoke(null); _completeHandler = null; _progressHandler = null; _errorHandler = null; }
private void OnLuaPreloadComplete(object sender, AssetsProxy assetsproxy, object data) { string luaPath; bool binary; if (Env.isEditor) { binary = false; luaPath = Application.dataPath + "/Scripts/Lua"; } else { binary = true; luaPath = "Assets/Sources/lua/"; } //LuaEnv.Log = Logger.Log; XLuaGenIniterRegister.Init(); WrapPusher.Init(); DelegatesGensBridge.Init(); Env.LUA_ENV = new LuaEnv(); Env.LUA_ENV.AddLoader(( ref string filepath ) => LuaLoader.Load(ref luaPath, ref filepath, binary)); Env.LUA_ENV.DoString("print(\"lua start\");"); Env.LUA_ENV.DoString("require \"global\""); TaskManager.instance.RegisterTimer(5, 0, true, this.OnLuaTick, null); this.Init(); }
private void OnLoadComplete(object sender, AssetsProxy assetsproxy, object data) { AssetsLoader loader = ( AssetsLoader )sender; ArrayList al = ( ArrayList )loader.data; LoadCompleteCallback onSuccess = ( LoadCompleteCallback )al[0]; Texture2D texture = assetsproxy.LoadAsset <Texture2D>(loader.assetName); onSuccess?.Invoke(texture); }
private void OnInternalSingleComplete(object sender, AssetsProxy assetsProxy, IBatchLoader loader, object o) { if (assetsProxy.name == this._assetBundleName) { this._dec = assetsProxy.assetBundle; } else { this._res = assetsProxy.assetBundle; } }
private static void OnSingleLoadComplete(object sender, AssetsProxy assetsproxy, IBatchLoader loader, object data) { //CLogger.Log( $"batch:{( ( AssetsLoader )loader ).assetBundleName}" ); }
private void OnLoadMaterialComplete(object sender, AssetsProxy assetsproxy, object data) { this.InitLua(); }
private void OnLoadShaderComplete(object sender, AssetsProxy assetsproxy, object data) { this.PreloadMaterial(); }