void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player" && killManager.KillGoalReached() && !bossSpawner.spawnedBoss) { BossSpawnSequence(); } }
public void SpawnBoss() { if (waitTime <= 0 && !spawnedBoss && killManager.KillGoalReached()) { Instantiate(boss, GameObject.FindGameObjectWithTag("BossSpawnPoint").transform.position, Quaternion.identity); spawnedBoss = true; } }