From 77dd69e22378ded534f17ef98a397dd791cb4bd1 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 28 六月 2026 23:52:37 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_client
---
Assets/Launch/SkipUnityLogo/Script/SkipUnityLogo.cs | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/Assets/Launch/SkipUnityLogo/Script/SkipUnityLogo.cs b/Assets/Launch/SkipUnityLogo/Script/SkipUnityLogo.cs
index 00fd9f6..cb68969 100644
--- a/Assets/Launch/SkipUnityLogo/Script/SkipUnityLogo.cs
+++ b/Assets/Launch/SkipUnityLogo/Script/SkipUnityLogo.cs
@@ -1,6 +1,3 @@
-using System.Collections;
-using System.Collections.Generic;
-using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Scripting;
@@ -12,6 +9,15 @@
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
private static void CancelSplashScreen()
{
- Task.Run(()=>SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate));
+ // iOS 16+ 涓� Task.Run 鍦� BeforeSplashScreen 闃舵鍙兘鏃犳硶鍙婃椂璋冨害锛�
+ // 鏀圭敤鍚屾璋冪敤锛岀‘淇� SplashScreen 琚彲闈犲仠姝€��
+ try
+ {
+ SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
+ }
+ catch (System.Exception)
+ {
+ // 濡傛灉 SplashScreen 宸茬粡涓嶅瓨鍦ㄦ垨宸茶绂佺敤锛屽拷鐣ュ紓甯�
+ }
}
}
\ No newline at end of file
--
Gitblit v1.8.0