void InitGame()
    {
        doingSetup = true;

        levelImage     = GameObject.Find("LevelImage");
        levelText      = GameObject.Find("LevelText").GetComponent <Text>();
        levelText.text = "Day : " + level;
        levelImage.SetActive(true);
        Invoke("HideLevelImage", levelStartDelay);
        enemies.Clear();
        boardScript.SetupScene(level);
    }
Esempio n. 2
0
 private void BoardManagerSelector()
 {
     if (level < 5)
     {
         boardScript.SetupScene(level);
     }
     else if (level > 4 && level < 10)
     {
         boardScript1.SetupScene(level);
     }
     else if (level > 9 && level < 15)
     {
         boardScript2.SetupScene(level);
     }
     else if (level > 14)
     {
         boardScript3.SetupScene(level);
     }
 }