private void save_progress() { SaveService.DeleteSave(); // clear table before save new data for (int i = 0; i < PuzzlesService.puzzleArray.Length; i++) { SaveService.SetSave(PuzzlesService.puzzleArray[i]); } GamesModel gm = new GamesModel(); gm.SaveBreakGame(StartPuzzle.gamesID); }
public void actionIndex() { //Debug.Log("PauseController:actionIndex"); //this.Render("Pause"); GameObject canvas = GameObject.Find("Canvas"); //.transform.Find("Pause"); GameObject win = canvas.transform.Find("Win").gameObject; //Debug.Log(menu); if (win != null) { win.SetActive(true); win.GetComponent <RectTransform>().SetAsLastSibling(); } SaveService.DeleteSave(); }