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