public void GetSubCategoryProductImage(long sub_id, string sku, Action <Sprite> callback) { if (collectorType == CollectorServiceType.Local) { StartCoroutine(collector.GetSubCategoryProductTexture(sub_id, sku, (tex) => { Sprite sp = DataUtility.CreateSprite(tex); callback(sp); })); } else { StartCoroutine(collector.GetSubCategoryProductImage(sub_id, sku, (bytes) => { Sprite sp = DataUtility.CreateSprite(bytes); callback(sp); })); } }