| | |
| | | { |
| | | if (VersionUtility.Instance.versionInfo == null || noticeShowed) |
| | | return; |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch); |
| | | |
| | | if (null == VersionConfig.config) |
| | | { |
| | | throw new System.Exception("VersionConfig is null when OpenGameNotice, game will pause here"); |
| | | } |
| | | |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.config.branch); |
| | | if (!string.IsNullOrEmpty(url)) |
| | | { |
| | | SDKUtils.Instance.OpenUrl(url); |
| | |
| | | { |
| | | if (VersionUtility.Instance.versionInfo == null) |
| | | return false; |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch); |
| | | |
| | | if (null == VersionConfig.config) |
| | | { |
| | | throw new System.Exception("VersionConfig is null when HasNotice, check VersionConfig.GetAsync for more details"); |
| | | } |
| | | |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.config.branch); |
| | | Debug.LogFormat("公告地址:{0}", url); |
| | | return !string.IsNullOrEmpty(url); |
| | | } |
| | |
| | | { |
| | | if (VersionUtility.Instance.versionInfo == null) |
| | | return; |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch); |
| | | if (null == VersionConfig.config) |
| | | { |
| | | throw new System.Exception("VersionConfig is null when OpenGameNoticeForce, check VersionConfig.GetAsync for more details"); |
| | | } |
| | | var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.config.branch); |
| | | if (!string.IsNullOrEmpty(url)) |
| | | { |
| | | SDKUtils.Instance.OpenUrl(url); |