修正森林圖無法觸發輔助問題
This commit is contained in:
1 parent
062dd0f9d5
commit
285a4e1e1e
18 files changed
+151
-44
No files matched your search
@@ -18,8 +18,8 @@ public class EnemyHealthBar : MonoBehaviour
|
||||
|
||||
void Start()
|
||||
{
|
||||
// prefab 存不住場景物件的參照 : 沒拖的話自動找場景裡的 BotSpawner (新地圖不用再手動接)
|
||||
if (spawner == null) spawner = FindAnyObjectByType<BotSpawner>();
|
||||
// 沒拖、或拖到 prefab 檔案本身 : 自動找場景裡的 BotSpawner (新地圖不用再手動接)
|
||||
spawner = BotSpawner.FindInScene(spawner);
|
||||
}
|
||||
|
||||
void Awake()
|
||||
|
||||
Reference in new issue
Block a user