private void CheckBrickCount()
 {
     if (CountBricks() <= 0)
     {
         //Debug.Log("All bricks gone, loading next screen");
         IBoss boss = FindObjectOfType <Boss>() as IBoss;
         if (boss != null)
         {
             boss.StartEncounter();
         }
         else
         {
             NextLevel();
         }
     }
 }
Beispiel #2
0
 private void CheckBrickCount()
 {
     if (CountBricks() <= 0 && sceneLoader.isCurrentSceneLevel())
     {
         //Debug.Log("All bricks gone, loading next screen");
         IBoss boss = FindObjectOfType <Boss>() as IBoss;
         if (boss != null)
         {
             isBossSessionInProgress = true;
             boss.StartEncounter();
             options.HighestLevel = intconstants.MRBRICKWORM;
         }
         else
         {
             NextLevel();
         }
     }
 }