AOT初始化隐藏更新UI

main
Yurui 2025-12-12 14:03:24 +08:00
parent 0e7a882b94
commit 58350e550d
3 changed files with 10 additions and 3 deletions

View File

@ -12,7 +12,6 @@ using Obfuz.EncryptionVM;
using Obfuz;
using static ProgressBarData;
#if PLATFORM_ANDROID || UNITY_EDITOR
using UnityEngine.Android;
#endif
@ -139,6 +138,7 @@ public class GameLauncher : MonoBehaviour
#endif
versionUpdateUI = new TempUIHandle();
versionUpdateUI.HideUpdateInfo();
bool agreement = PlayerPrefs.GetInt("PrivacyAgreement", 0) == 1;
BIToolinAOT.Instance.TrackEventInAOT("app_open", null);

View File

@ -1,5 +1,4 @@
using Cysharp.Threading.Tasks;
using PhxhSDK.AOT.PreConfig;
using PhxhSDK.AOT.VersionUpdate;
using UnityEngine;
namespace HotUpdate.UI
@ -64,6 +63,14 @@ namespace HotUpdate.UI
TempUpdateUI.Instance.m_TextProgress.text = text;
}
public void HideUpdateInfo()
{
TempUpdateUI.Instance.m_TextAotVersion.gameObject.SetActive(false);
TempUpdateUI.Instance.m_TextCurResVersion.gameObject.SetActive(false);
TempUpdateUI.Instance.m_TextNewResVersion.gameObject.SetActive(false);
TempUpdateUI.Instance.m_TextProgress.gameObject.SetActive(false);
}
public void CloseAll()
{
if (TempUpdateUI.Instance.UICamera != null)

@ -1 +1 @@
Subproject commit fe3ff98422e6a22b377ee71a8198ad8e8a35b90b
Subproject commit d4bd3ad8b47183f53876902f1acb458b946a5bdd