UI换了很多,spine主视觉停用
This commit is contained in:
@@ -84,7 +84,7 @@ public class HoldNote : BaseNote
|
||||
if (allyCache == null || allyCache.Length < 10) allyCache = new AllyCombatant[10];
|
||||
if (allyCache[trackIndex] != null) return allyCache[trackIndex];
|
||||
|
||||
var allyGo = GameObject.Find($"ally_0{trackIndex + 1}");
|
||||
var allyGo = SceneObjectLookupCache.Find($"ally_0{trackIndex + 1}");
|
||||
if (allyGo != null)
|
||||
{
|
||||
allyCache[trackIndex] = allyGo.GetComponent<AllyCombatant>();
|
||||
@@ -95,7 +95,7 @@ public class HoldNote : BaseNote
|
||||
private static BeatmapManager GetBeatmapManagerCached()
|
||||
{
|
||||
if (beatmapManagerCache != null) return beatmapManagerCache;
|
||||
beatmapManagerCache = Object.FindAnyObjectByType<BeatmapManager>();
|
||||
beatmapManagerCache = SceneObjectLookupCache.FindAny<BeatmapManager>();
|
||||
return beatmapManagerCache;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ public class HoldNote : BaseNote
|
||||
anim = GetComponent<AnimationController>();
|
||||
if (anim == null)
|
||||
{
|
||||
anim = FindAnyObjectByType<AnimationController>();
|
||||
anim = SceneObjectLookupCache.FindAny<AnimationController>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user