製作地下室地圖、Raw Input 整合後續修正
This commit is contained in:
1 parent
81d2a150c2
commit
23c311e905
191 files changed
+59056
-9911
No files matched your search
@@ -13,6 +13,12 @@ public class EnemyIndicator : MonoBehaviour
|
||||
[Tooltip("箭頭 (朝上的圖片)")]
|
||||
public RectTransform pointer;
|
||||
|
||||
void Start()
|
||||
{
|
||||
// prefab 存不住場景物件的參照 : 沒拖的話自動找場景裡的 BotSpawner (新地圖不用再手動接)
|
||||
if (spawner == null) spawner = FindAnyObjectByType<BotSpawner>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (pointer == null) return;
|
||||
|
||||
Reference in new issue
Block a user