//ステータス変化を検知してAssetを取得したい場合 //※基本、これはソースが汚くなるので使わない //※既存ソースにこっちの方が組み込みやすい場合のみ使用する public void OnClickWaitChangeStatus() { if (aber != null) { return; } Reset(); aber = AssetBundler.Create(); aber.Set("iconpackpanel"); aber.DisableAutoDestoryOnSuccess(); aber.Load(); }
private void NextDownlaod() { int run_cunt = 0; for (int i = 0; i < children.Count; i++) { if (MAX_PARALLEL_DOWNLOAD <= run_cunt) { return; } AssetBundler ab = children[i]; if (ab.IsSuccess) { continue; } if (ab.IsError) { continue; } if (ab.IsWait) { run_cunt++; continue; } if (ab.IsFail) { ab.Retry(); run_cunt++; continue; } if (ab.IsReady) { ab.Load(); run_cunt++; continue; } } }