Ejemplo n.º 1
0
    public XinYueStudioImage(string imageID = "", string label = "", bool isAssetImage = false, int height = 100, int width = 100)
    {
        bool flag = imageID == "";

        if (!flag)
        {
            this.mImageStartedLoading = true;
            XinYueStudioImageDownloaderJob job;

            job = new XinYueStudioImageDownloaderJob(imageID);

            XinYueStudioImageDownloader.Instance.AddJob(job, delegate(Texture2D image)
            {
                this.mImage               = image;
                this.mImageLoaded         = true;
                this.mImageStartedLoading = false;
                bool flag2 = this.mImage != null;
                if (flag2)
                {
                    this.PostLoadProcess();
                }
            });
        }
    }
Ejemplo n.º 2
0
 public void AddJob(XinYueStudioImageDownloaderJob job, Action <Texture2D> callback)
 {
     job.mProcessAction = callback;
     this.mJobList.Add(job);
 }