public void IsUpdateMoveTitle(Action updateAction, Action nextAction) { if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingStart(LOADING_TYPE.PATCH); } Load( () => { if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingFinish(LOADING_TYPE.PATCH); } if (LocalSaveManagerRN.Instance.PatcherCounter < GetUpdateCounter()) { #if BUILD_TYPE_DEBUG Debug.Log("Update Counter Change!!! Goto Title!!"); #endif DialogManager.Open1B("ERROR_MSG_UPDATE_TITLE", "ERROR_MSG_UPDATE", "common_button1", true, true). SetDialogEvent(DialogButtonEventType.OK, () => { if (updateAction != null) { updateAction(); } LocalSaveManagerRN.Instance.PatcherCounter = GetUpdateCounter(); LocalSaveManagerRN.Instance.Save(); SceneCommon.Instance.GameToTitle(); }). DisableCancelButton(); } else { if (nextAction != null) { nextAction(); } } }, (error) => { if (LoadingManager.Instance != null) { LoadingManager.Instance.RequestLoadingFinish(LOADING_TYPE.PATCH); } Debug.LogError("ERROR:" + error); DivRNUtil.ShowRetryDialog( () => { IsUpdateMoveTitle(updateAction, nextAction); }); }); }
public AssetBundlerMultiplier Retryable() { DisableAutoDestoryOnFail(); SetOnFail(() => { DivRNUtil.ShowRetryDialog( () => { fsm.SendFsmEvent("RETRY"); }); }); return(this); }
protected override void Awake() { base.Awake(); DisableAutoDestoryOnFail(); failAction = ((str) => { DivRNUtil.ShowRetryDialog( () => { Retry(); }); }); fsm = GetComponent <AssetBundlerFSM>(); }