private void Update() { //APAGAR ############################## if (Input.GetKeyDown(KeyCode.Space)) { UI.instance.ShowFinalButtons(); AddTimeAsked(5); LoadSaveManager.LoadGame(); } if (Input.GetKeyDown(KeyCode.N)) { NextLevel(); } //APAGAR ############################## ManageTime(); }
private void Start() { SetLevel(); if (LoadSaveManager.atualGame.levels != null) { Game g = LoadSaveManager.LoadGame(); if (g != null) { int index = 1; foreach (Level level in g.levels) { string log = ""; log += "level index - " + level.levelParams.levelIndex + "\n"; log += "time played - " + level.levelParams.timePlayed + "\n"; log += "time guess - " + level.levelParams.timeGuess + "\n"; log += "score - " + level.point.Count; Debug.Log(log); index++; } } } }