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