// 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); }
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); } }
void InitGame() { boardScript.SetupScene(level); }