UI换了很多,spine主视觉停用
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user