IEnumerator GameOverProcess() { planStage = PlanStage.GameOver; CameraShaking.instance.SwitchEffect(CameraEffect.None); //GameOverUI.SetActive (true); //scoreText.text = DataManager.instance.GetCurrentScore ()+""; if (drillMachine.GetRemainHP() > 0) { //gameoverText.text = "DONE"; //ambientSound.Stop(); //ambientSound.PlayOneShot(drillstop, 1); ambSound.StopAmbient(); ambSound.PlayOneShot(1, 1); HintCtrl.instance.UpdateHintText("End of path reached"); } else { //gameoverText.text = "BROKEN"; //ambientSound.Stop(); //ambientSound.PlayOneShot(drillbroken, 1); ambSound.StopAmbient(); ambSound.PlayOneShot(2, 1); HintCtrl.instance.UpdateHintText("Bit wore out"); } //DrillUI.SetActive (false); yield return(new WaitForSeconds(3)); EndingFadeBlack.FadeIn(); }