perf
This commit is contained in:
@@ -29,5 +29,30 @@ namespace Ichni.RhythmGame.UI
|
||||
[Title("Buttons")]
|
||||
public Button restartButton;
|
||||
public Button backButton;
|
||||
|
||||
public void SetUpSummary()
|
||||
{
|
||||
InformationTransistor info = InformationTransistor.instance;
|
||||
|
||||
songNameText.text = info.song.songName;
|
||||
composerText.text = info.song.composer;
|
||||
illustratorText.text = info.song.illustratorName;
|
||||
difficultyText.text = info.difficulty.GetDifficultyName();
|
||||
chartDesignerText.text = info.difficulty.charterName;
|
||||
|
||||
PlayingRecorder recorder = GameManager.instance.playingRecorder;
|
||||
|
||||
perfectCountText.text = recorder.perfectCount.ToString();
|
||||
goodCountText.text = recorder.goodCount.ToString();
|
||||
badCountText.text = recorder.badCount.ToString();
|
||||
missCountText.text = recorder.missCount.ToString();
|
||||
accuracyText.text = recorder.accuracy.ToString("F2") + "%";
|
||||
maxComboText.text = recorder.maxCombo.ToString();
|
||||
|
||||
restartButton.onClick.RemoveAllListeners();
|
||||
restartButton.onClick.AddListener(GameManager.RestartGame);
|
||||
backButton.onClick.RemoveAllListeners();
|
||||
backButton.onClick.AddListener(GameManager.ReturnToMenu);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user