Exemplo n.º 1
0
    // Inicializa o jogo (limpa a lista de inimigos e gera a fase).
    void InitGame()
    {
        doingSetup     = true;
        levelImage     = GameObject.Find("LevelImage");
        levelText      = GameObject.Find("LevelText").GetComponent <Text>();
        levelText.text = "Dia " + level;
        levelImage.SetActive(true);
        Invoke("HideLevelImage", levelStartDelay);

        enemies.Clear();
        boardManager.SetupScene(level);
    }
Exemplo 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);
     }
 }
Exemplo n.º 3
0
 void InitGame()
 {
     boardScript.SetupScene(level);
 }