public void FinishGame() { Player.enabled = false; CanvasAnim.SetTrigger("EndTrigger"); sound.clip = finish; sound.loop = true; sound.Play(); switch (_LBManager.Placed(chronoMin, chronoSec, chronoCentiSec, actualLevel)) { case 1: pos.text = "1st"; BestScoreUiUpdate(); break; case 2: pos.text = "2nd"; BestScoreUiUpdate(); break; case 3: pos.text = "3rd"; BestScoreUiUpdate(); break; case 4: pos.text = "4th"; BestScoreUiUpdate(); break; case 5: pos.text = "5th"; BestScoreUiUpdate(); break; case 6: pos.text = "6th"; BestScoreUiUpdate(); break; default: CanvasAnim.SetTrigger("NoBestScore"); lapFinishNoB.text = GetBestLap(); timeFinishNoB.text = GetTime(); homeSelected.Select(); homeSelected.OnSelect(null); break; } }