调整Adjust初始化顺序

main
Yuntao Hu 2025-08-08 17:12:34 +08:00
parent 80b6dcd36b
commit 3d51feff73
1 changed files with 7 additions and 8 deletions

View File

@ -51,6 +51,13 @@ public class GameLauncher : MonoBehaviour
DontDestroyOnLoad(goBiliBiliSDK);
#endif
}
private void Start()
{
#if SDK_BILIBILI
GSCSdkInterface.init();
#endif
#if SDK_ADJUST
try
@ -69,14 +76,6 @@ public class GameLauncher : MonoBehaviour
DebugUtil.LogError($"Adjust SDK 初始化失败: {e.Message}");
}
#endif
}
private void Start()
{
#if SDK_BILIBILI
GSCSdkInterface.init();
#endif
versionUpdateUI = new TempUIHandle();
bool agreement = PlayerPrefs.GetInt("PrivacyAgreement", 0) == 1;