private void LoadLevel() { questionNum++; if (questionNum == 10) { gameCenter.UpdateReportProgress(GameCenterKey.AchieveQuestion10, 50, 50); } if (questionNum == 100) { gameCenter.UpdateReportProgress(GameCenterKey.AchieveQuestion100, 100, 100); } curPassTime = 0; if (level == 1) { level = 2; curLevelQuestion = 0; isStart = true; AddTryNum(); } else if (level < DefineNumber.MaxLevel) { if (curLevelQuestion >= DefineNumber.LevelUpNum) { level++; curLevelQuestion = 0; } curLevelQuestion++; } GamePlayMgr.Instance.GenChoices(level); kanaType = KanaType.Hira; if (questionNum > DefineNumber.QuestionNumToRand) { if (Random.Range(1, 100) >= 50) { kanaType = KanaType.Kata; } } if (questionNum > DefineNumber.HardLevelNum) { passTime = DefineNumber.HardCooldown; rotateSpeed = DefineNumber.HardRotateSpeed; } else { passTime = DefineNumber.Cooldown; rotateSpeed = DefineNumber.RotateSpeed; } question.ShowRiddle(GamePlayMgr.Instance.GetChosenIndex(), kanaType); choice.ShowChoices(level, kanaType); ui.LoadLevel(); RefreshTheme(); }