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