public void OnClick() { FreeController.WriteData(); DataManager dataManager = DataManager.Instance; ScoreDataV1 param = new ScoreDataV1(); param.Id = dataManager.UserData.Id; param.Name = dataManager.UserData.Name; param.Row = dataManager.PuzzleData.Row; param.Col = dataManager.PuzzleData.Col; param.Color = dataManager.PuzzleData.Color; param.Link = dataManager.PuzzleData.Link; param.Direction = dataManager.PuzzleData.Direction; param.Time = dataManager.PuzzleData.Time; param.Stop = dataManager.PuzzleData.Stop; param.CountDisp = dataManager.PuzzleData.CountDisp; param.Garbage = dataManager.PuzzleData.Garbage; param.Version = 0; param.ScoreCategoryValue = (int)ScoreDataV1.ScoreCategory.Global; ScoreManager scoreManager = ScoreManager.Instance; for (int scoreKind = 0; scoreKind < ScoreDataV1.SCORE_KIND_MAX; scoreKind++) { param.ScoreKindValue = scoreKind; scoreManager.fetchTopRankers(scoreKind, param, FreeController.RANK_MAX); } }
// Update is called once per frame void Update() { if (valueChangeFlag) { valueChangeFlag = false; FreeController.WriteData(); } }
public void OnClickPracticeButton() { FreeController.WriteData(); DataManager dataManager = DataManager.Instance; dataManager.PuzzleData.Practice = 1; dataManager.PuzzleData.WriteCount++; dataManager.Write(); SceneManager.LoadScene("Puzzle"); }