UI换了很多,spine主视觉停用

This commit is contained in:
FloatGaming
2026-06-15 20:17:25 +08:00
parent 5eec879582
commit 216ab08e8d
3634 changed files with 814422 additions and 382766 deletions
+8 -6
View File
@@ -7,7 +7,7 @@ using System.IO;
public class dlcButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
private const bool VerboseLogs = false;
private static readonly bool VerboseLogs = false;
[Header("Inspector")]
public Image dlc_profileImgae;
public Text dlcName;
@@ -65,7 +65,7 @@ public class dlcButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandle
{
yield return new WaitForSecondsRealtime(0.5f);
// 尝试从场景中查找 dlcDetailParent (如果自身引用的为空)
// 灏濊瘯浠庡満鏅腑鏌ユ壘 dlcDetailParent (濡傛灉鑷韩寮曠敤鐨勪负绌?
if (dlcDetailParent == null)
{
var details = GameObject.FindObjectsByType<dlcButton>(FindObjectsInactive.Include, FindObjectsSortMode.None);
@@ -83,16 +83,18 @@ public class dlcButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandle
if (dlcDetailParent != null)
{
dlcDetailParent.SetActive(true);
// 更新简介信息
// 鏇存柊绠€浠嬩俊鎭?
if (dlcDescription != null)
{
if (dlcDataSO != null)
{
dlcDescription.text = string.IsNullOrEmpty(dlcDataSO.dlcDescription) ? "暂无DLC简介信息。" : dlcDataSO.dlcDescription;
dlcDescription.text = string.IsNullOrEmpty(dlcDataSO.dlcDescription)
? LocalizationService.Get("dlc.no_description", "暂无DLC简介信息。")
: dlcDataSO.dlcDescription;
}
else
{
dlcDescription.text = "暂无DLC简介信息。";
dlcDescription.text = LocalizationService.Get("dlc.no_description", "暂无DLC简介信息。");
}
}
}
@@ -284,7 +286,7 @@ public class dlcButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandle
private SongSelectUI FindSongSelectUI()
{
var ui = Object.FindAnyObjectByType<SongSelectUI>();
var ui = SceneObjectLookupCache.FindAny<SongSelectUI>();
if (ui != null)
{
return ui;