public void RefreshIsFinish() { if (_IsFinish) { return; } if (Loaders == null) { _IsFinish = true; OnFinishCallback?.Invoke(); } bool isFin = true; foreach (var l in Loaders) { if (!l.IsComplete) { isFin = false; break; } } if (isFin) { OnFinishCallback?.Invoke(); _IsFinish = true; } }
// ボタンから呼び出される public void OnPushVoid() { if (EventVoid != null) { EventVoid.Invoke(this, new EventArgs()); } }
private void LoadBundleAsync_Finish(AsyncOperation op) { if (op is AssetBundleCreateRequest abcr) { Bundle = abcr.assetBundle; if (Bundle != null && State != eLoadState.State_Error) { this.Complete(); } else { this.Error(); } if (LoadBundleAsync_CallBack != null) { LoadBundleAsync_CallBack.Invoke(); LoadBundleAsync_CallBack = null; } abCreateReq = null; } }