Пример #1
0
        private void OnComplete(object sender, AssetsProxy assetsProxy, object data)
        {
            UILoader       loader   = ( UILoader )sender;
            UILoadCallback callback = ( UILoadCallback )loader.data;

            callback.Invoke();
        }
Пример #2
0
 private static void OnLoadComplete(object sender, AssetsProxy assetsproxy, object data)
 {
     _completeHandler?.Invoke(null);
     _completeHandler = null;
     _progressHandler = null;
     _errorHandler    = null;
 }
Пример #3
0
        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();
        }
Пример #4
0
        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);
        }
Пример #5
0
 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;
     }
 }
Пример #6
0
 private static void OnSingleLoadComplete(object sender, AssetsProxy assetsproxy, IBatchLoader loader, object data)
 {
     //CLogger.Log( $"batch:{( ( AssetsLoader )loader ).assetBundleName}" );
 }
Пример #7
0
 private void OnLoadMaterialComplete(object sender, AssetsProxy assetsproxy, object data)
 {
     this.InitLua();
 }
Пример #8
0
 private void OnLoadShaderComplete(object sender, AssetsProxy assetsproxy, object data)
 {
     this.PreloadMaterial();
 }