} //End void HandlePostRaceEvents() { if (FinishLine.FINISH_POSITION == 5 && firstTimeThruThis == true) { Debug.Log("Entered post race events"); //**** All 4 players have crossed the finish line @ this point **** //Get player4's finish position (and the total finish order) GetFinalFinishOrder(); //Display finish position image/text for player 4 finalFinishText.DisplayFinishText(youFinishedThisPlace); finalFinishImage.DisplayFinishImage(youFinishedThisPlace); if (youFinishedThisPlace == 1) { winSounds.PlayWinSounds(); } else if (youFinishedThisPlace == 2) { winSounds.PlaySecondPlaceSound(); } else if (youFinishedThisPlace >= 3) { winSounds.PlayLoseSound(); } //Stop background music musicManager.StopPlayingBackgroundMusic(); //Enable buttons playAgainManager.EnablePlayAgainButton(); quitButtonManager.EnableQuitButton(); unityAdsManager.EnableGetSpeedButton(); //Dim background so UI canvas shows up better directionalLight.DimTheLights(); //Only pass thru this once firstTimeThruThis = false; //Only report the finish order once } //End if } //End