public void RegisterSpawer(EnemySpawer spawer)
 {
     spawers.Add(spawer);
     spawer.onEnemySpaw += HandleEnemySpaw;
 }
Esempio n. 2
0
 private void Start()
 {
     sm          = GameObject.FindGameObjectWithTag("SM").GetComponent <PlayerScoreManager>();
     enemySpawer = GameObject.FindGameObjectWithTag("EnemySpawner").GetComponent <EnemySpawer>();
 }