private IEnumerator HideSuccessfulAccessDialog() { if (this.syncState == CloudUI.Sync.Download) { yield return(new WaitForSeconds(0.5f)); FF9StateSystem.Serializer.GetSelectedLanguage(delegate(DataSerializerErrorCode errNo, Int32 selectedLanguage) { if (errNo == DataSerializerErrorCode.Success) { FF9StateSystem.Settings.CurrentLanguage = LanguageCode.ConvertToLanguageName(selectedLanguage); Localization.language = LanguageCode.ConvertToLanguageName(selectedLanguage); UIManager.Field.InitializeATEText(); this.StartCoroutine(PersistenSingleton <FF9TextTool> .Instance.UpdateTextLocalization(delegate { this.Loading = false; this.SuccessfulAccessPanel.SetActive(false); this.UpdateLabelLanguage(); this.DisplayFileInfo(this.localFileHud, this.localPreview, this.corruptFile == CloudUI.Sync.Upload, ISharedDataSerializer.LastErrno); this.DisplayFileInfo(this.cloudFileHud, this.cloudPreview, this.corruptFile == CloudUI.Sync.Download, ISharedDataSerializer.LastErrno); this.DisplayTimeStamp(); this.CheckData(); ButtonGroupState.ActiveGroup = CloudUI.LocalFileGroupButton; ButtonGroupState.HoldActiveStateOnGroup(CloudUI.SubMenuGroupButton); })); } else { this.Loading = false; this.SuccessfulAccessPanel.SetActive(false); this.DisplayFileInfo(this.localFileHud, this.localPreview, this.corruptFile == CloudUI.Sync.Upload, ISharedDataSerializer.LastErrno); this.DisplayFileInfo(this.cloudFileHud, this.cloudPreview, this.corruptFile == CloudUI.Sync.Download, ISharedDataSerializer.LastErrno); this.DisplayTimeStamp(); this.CheckData(); ButtonGroupState.ActiveGroup = CloudUI.LocalFileGroupButton; ButtonGroupState.HoldActiveStateOnGroup(CloudUI.SubMenuGroupButton); } }); } else { yield return(new WaitForSeconds(1.5f)); base.Loading = false; this.SuccessfulAccessPanel.SetActive(false); this.DisplayFileInfo(this.localFileHud, this.localPreview, this.corruptFile == CloudUI.Sync.Upload, ISharedDataSerializer.LastErrno); this.DisplayFileInfo(this.cloudFileHud, this.cloudPreview, this.corruptFile == CloudUI.Sync.Download, ISharedDataSerializer.LastErrno); this.DisplayTimeStamp(); this.CheckData(); ButtonGroupState.ActiveGroup = CloudUI.CloudFileGroupButton; ButtonGroupState.HoldActiveStateOnGroup(CloudUI.SubMenuGroupButton); } yield break; }