void GameOver() { stick.SetActive(false); if (PlayerPrefs.GetString("Controls") == "DPad") { dpad.SetActive(false); } stop.moveEnabled = false; lives = 0; int coinAdd = 5 + (score / 10 * 4); PlayerPrefs.SetInt("Total_Coins", PlayerPrefs.GetInt("Total_Coins") + coinAdd); PlayerPrefs.SetInt("Total_Wordsnake_Games_Played", PlayerPrefs.GetInt("Total_Wordsnake_Games_Played") + 1); wordCount = 0; updateHighScore(score); anim.SetTrigger("GameOver"); achScr.AchOne(); achScr.AchTwo(); achScr.AchThree(); achScr.AchFour(); achScr.AchFive(); achScr.AchSix(); score = 0; PlayAd(); }