public void CarregarTemp() { stringNome = "Type level name."; boardScript.Finalizar(); boardScript.SetupScene(1, nomeArquivo, false); boardScript.ModoEditorFase(); seletor.Ativar(); if (boardScript.kevin != null) { boardScript.kevin.Desativar(); } GameManager.instance.Pause(true); SetMenu(0); }
// Use this for initialization void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } boardScript = GameManager.instance.boardScript; //Comente para partes do infinito boardScript.columns = 20; boardScript.rows = 50; boardScript.matrixes = 30; /*//Descomente para partes do infinito * boardScript.columns = 10; * boardScript.rows = 10; * boardScript.matrixes = 10; */ boardScript.BoardStart(); boardScript.SetGrid(); SoundManager.instance.PlayMusic(musicaEditor); //TIRAR O COMENTÁRIO seletor = Instantiate(seletor, new Vector3(0, 0, 0), Quaternion.identity); seletor.Iniciar(); seletor.Move(new Vector3(0, 0, 0)); seletor.Desativar(); GameManager.instance.DefinirEditor(true); CriarHUD(50, 30, 20); SetMenu(0); seletor.gameObject.SetActive(true); seletor.Ativar(); SelecionarBloco(); }