Exemple #1
0
 private void checkEnemies()
 {
     enemiesInThisRoom--;
     if (enemiesInThisRoom <= 0 && encounter)
     {
         hasEnemyInThisRoom = false;
         //Destroy(encounter.Enemies);
         dungeonManager.OpenAllDoors();
         minimapCam.ShowMinimap();
         if (type == 2 && !floorHasBoss)
         {
             encounter.ActivateEnviroment();
         }
         if (type == 3)
         {
             GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>().GameCompletePanel.SetGameCompleteActive(true);
         }
     }
 }