| 1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class EnemyManager : MonoBehaviour {
- private EnemySpawner[] enemySpawners;
- // Use this for initialization
- void Start ()
- {
- enemySpawners= GameObject.FindObjectsOfType<EnemySpawner>();
- }
-
- // Update is called once per frame
- void Update ()
- {
- foreach(EnemySpawner spawner in enemySpawners)
- {
- // Just do nothing, no need to manage anything actually...
- }
- }
- }
|