private void _Refresh() { if (GameControl.Instance.game_data._current_game_type == GameType.Custom) { int max_level = GameControl.Instance.game_data.GetLevelDatas(GameControl.Instance.game_data.Current_Difficulty).Count; if (GameControl.Instance.game_data.currentGameLevel < max_level) { this._next.SetActive(true); this._restart.SetActive(false); } else { this._next.SetActive(false); this._restart.SetActive(true); } int record_time = GameData.GetRecord(GameControl.Instance.game_data.Current_Difficulty, GameControl.Instance.game_data.currentGameLevel); if (record_time == 0) { this.hight_record.text = "无纪录"; GameData.SetRecord(GameControl.Instance.game_data.Current_Difficulty, GameControl.Instance.game_data.currentGameLevel, UIMain.custom_cost_time); } else { this.hight_record.text = GameControl.SetTimeFormat(record_time); } if (UIMain.custom_cost_time < record_time) { GameData.SetRecord(GameControl.Instance.game_data.Current_Difficulty, GameControl.Instance.game_data.currentGameLevel, UIMain.custom_cost_time); } this.current_record.text = GameControl.SetTimeFormat(UIMain.custom_cost_time); this.beyond_record.text = GameControl.BeatPeple(UIMain.custom_cost_time, GameControl.Instance.game_data._current_game_type); } else { this._next.SetActive(false); this._restart.SetActive(true); this.current_record.text = GameControl.Instance.game_data.ChallangePassedNumber.ToString(); if (chanllange_level == 0) { this.hight_record.text = "无纪录"; } else { this.hight_record.text = chanllange_level.ToString(); } this.beyond_record.text = GameControl.BeatPeple(UIMain.custom_cost_time, GameControl.Instance.game_data._current_game_type); } }