EnemyManager.cs 503 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class EnemyManager : MonoBehaviour {
  5. private EnemySpawner[] enemySpawners;
  6. // Use this for initialization
  7. void Start ()
  8. {
  9. enemySpawners= GameObject.FindObjectsOfType<EnemySpawner>();
  10. }
  11. // Update is called once per frame
  12. void Update ()
  13. {
  14. foreach(EnemySpawner spawner in enemySpawners)
  15. {
  16. // Just do nothing, no need to manage anything actually...
  17. }
  18. }
  19. }