UI换了很多,spine主视觉停用
This commit is contained in:
@@ -27,8 +27,8 @@ public static class UI_SelectSong_AutoPlayToggleBinder
|
||||
|
||||
// Prefer the user's specified hierarchy if present (active only).
|
||||
GameObject go =
|
||||
GameObject.Find("rightInfos/difficultyBtnInfos/difficultyBtnInfos/select_Auto") ??
|
||||
GameObject.Find("rightInfos/difficultyBtnInfos/select_Auto");
|
||||
SceneObjectLookupCache.Find("rightInfos/difficultyBtnInfos/difficultyBtnInfos/select_Auto") ??
|
||||
SceneObjectLookupCache.Find("rightInfos/difficultyBtnInfos/select_Auto");
|
||||
|
||||
if (go == null)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ public class UI_SelectSong_EnterAnim : MonoBehaviour
|
||||
root = transform.parent as RectTransform;
|
||||
if (root == null)
|
||||
{
|
||||
Canvas canvas = Object.FindAnyObjectByType<Canvas>();
|
||||
Canvas canvas = SceneObjectLookupCache.FindAny<Canvas>();
|
||||
if (canvas != null)
|
||||
{
|
||||
root = canvas.transform as RectTransform;
|
||||
|
||||
Reference in New Issue
Block a user