UI换了很多,spine主视觉停用
This commit is contained in:
+2
-2
@@ -970,7 +970,7 @@ public class iBudeffPrefabController : MonoBehaviour
|
||||
|
||||
private static GameObject FindEnemyPutInScene()
|
||||
{
|
||||
var direct = GameObject.Find("budeffGrid");
|
||||
var direct = SceneObjectLookupCache.Find("budeffGrid");
|
||||
if (direct != null) return direct;
|
||||
try
|
||||
{
|
||||
@@ -1065,7 +1065,7 @@ public class iBudeffPrefabController : MonoBehaviour
|
||||
|
||||
private void TryAutoBindPuts()
|
||||
{
|
||||
var ui = teamUIController.Instance != null ? teamUIController.Instance : FindAnyObjectByType<teamUIController>();
|
||||
var ui = teamUIController.Instance != null ? teamUIController.Instance : SceneObjectLookupCache.FindAny<teamUIController>();
|
||||
if (ui == null) return;
|
||||
|
||||
if (ally01_put == null) ally01_put = FindPutUnder(ui.objectFather_ally01);
|
||||
|
||||
+3
-3
@@ -65,14 +65,14 @@ public class iNumberPrefabController : MonoBehaviour
|
||||
{
|
||||
if (ally_number_prefab == null)
|
||||
{
|
||||
var foundAlly = GameObject.Find("player_instant_prefab_ally");
|
||||
if (foundAlly == null) foundAlly = GameObject.Find("player_instant_prefab");
|
||||
var foundAlly = SceneObjectLookupCache.Find("player_instant_prefab_ally");
|
||||
if (foundAlly == null) foundAlly = SceneObjectLookupCache.Find("player_instant_prefab");
|
||||
if (foundAlly != null && foundAlly.GetComponent<playerInstantNumbersPrefab>() != null) ally_number_prefab = foundAlly;
|
||||
}
|
||||
|
||||
if (enemy_number_prefab == null)
|
||||
{
|
||||
var foundEnemy = GameObject.Find("player_instant_prefab_enemy");
|
||||
var foundEnemy = SceneObjectLookupCache.Find("player_instant_prefab_enemy");
|
||||
if (foundEnemy != null && foundEnemy.GetComponent<playerInstantNumbersPrefab>() != null) enemy_number_prefab = foundEnemy;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user