protected override void onStart() { base.onStart(); _gameData = (CalorieDefenceGameData)CurrentGameData; _calorieValue = _gameData.calorie; _scoreValue = _gameData.score; _maxComboValue = _gameData.maxCombo; _bestFoodIndex = _gameData.bestFoodIndex; _gradeValue = _gameData.rank; _rankingModuleRunning = false; _currentPosition = resultBackground.transform.position.y; if (finishAudio != null) { AudioSource.PlayClipAtPoint(finishAudio, transform.position, 1.0f); } if (guiLayer) { guiLayer.SetActive(true); } saveGameRecord(); }