UI换了很多,spine主视觉停用
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
public class UISoundRouter : MonoBehaviour
|
||||
{
|
||||
private const bool VerboseLogs = false;
|
||||
private static readonly bool VerboseLogs = false;
|
||||
public static UISoundRouter Instance;
|
||||
|
||||
[SerializeField] private UISoundConfig soundConfig;
|
||||
|
||||
@@ -49,7 +49,7 @@ public static class UISystemBootstrap
|
||||
Debug.Log("RegisterButtons Called");
|
||||
|
||||
// Find all Selectable objects (includes Button, Toggle, Slider, etc.)
|
||||
Selectable[] selectables = Object.FindObjectsOfType<Selectable>(true);
|
||||
Selectable[] selectables = Object.FindObjectsByType<Selectable>(FindObjectsInactive.Include, FindObjectsSortMode.None);
|
||||
|
||||
foreach (var sel in selectables)
|
||||
{
|
||||
@@ -75,4 +75,4 @@ public static class UISystemBootstrap
|
||||
sel.gameObject.AddComponent<UIButtonInteraction>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user