UI换了很多,spine主视觉停用
This commit is contained in:
@@ -374,7 +374,7 @@ public class TeamSelectorAnimController : MonoBehaviour
|
||||
|
||||
void FlashTeammatesProfiles()
|
||||
{
|
||||
GameObject go = GameObject.Find("teammates_profilesHorizontalLayout");
|
||||
GameObject go = SceneObjectLookupCache.Find("teammates_profilesHorizontalLayout");
|
||||
if (go == null) return;
|
||||
CanvasGroup cg = EnsureCanvasGroup(go.transform as RectTransform);
|
||||
if (cg == null) return;
|
||||
@@ -532,7 +532,7 @@ static class TeamSelectorAnimBootstrap
|
||||
{
|
||||
if (installed) return;
|
||||
installed = true;
|
||||
GameObject runner = GameObject.Find("__TeamSelectorAnimRunner");
|
||||
GameObject runner = SceneObjectLookupCache.Find("__TeamSelectorAnimRunner");
|
||||
if (runner == null)
|
||||
{
|
||||
runner = new GameObject("__TeamSelectorAnimRunner");
|
||||
|
||||
@@ -62,8 +62,6 @@ public class newTeamSelector : MonoBehaviour
|
||||
StartCoroutine(LoadSelectedHeroesNextFrame());
|
||||
}
|
||||
|
||||
void Update() { }
|
||||
|
||||
private IEnumerator LoadSelectedHeroesNextFrame()
|
||||
{
|
||||
yield return null;
|
||||
|
||||
@@ -199,7 +199,7 @@ public class loadSettlementTeamPrefab : MonoBehaviour
|
||||
}
|
||||
|
||||
// Health: try to find AllyCombatant by name ally_01..ally_05
|
||||
var allyGo = GameObject.Find($"ally_0{i+1}");
|
||||
var allyGo = SceneObjectLookupCache.Find($"ally_0{i+1}");
|
||||
if (allyGo != null)
|
||||
{
|
||||
var ac = allyGo.GetComponent<AllyCombatant>();
|
||||
|
||||
Reference in New Issue
Block a user