Exemplo n.º 1
0
        public void LoadTexture(string ID, TextureVault.SuccessHandler onSuccess, TextureVault.ErrorHandler onError, string directory = "")
        {
            TextureVaultItem textureVaultItem = queue.GetQueuedRequests().Where(item => item.ID == ID).First();

            if (textureVaultItem != null)
            {
                queue.DeleteRequest(textureVaultItem);
            }

            this.queue.Process(new TextureVaultItem(ID, onSuccess, onError, directory));
        }
Exemplo n.º 2
0
 private void OnAdvanceQueueAction(TextureVaultItem item)
 {
     TextureVault.LoadTextureItem(item.ID, item.onSuccess, item.onError, item.directory);
 }