public void checkIfWord() { if (text.isWord(tail.finalWord) == true) { PlayerPrefs.SetInt("Total_Words", PlayerPrefs.GetInt("Total_Words") + 1); score = score + (tail.wpc * tail.multi) + tail.blocks; wordCount++; text.inDic = false; tail.audio2.Play(); tail.blocks++; tail.AddBlocks(); achScr.AchEleven(tail.finalWord); achScr.AchTwelve(tail.finalWord); achScr.AchThirteen(tail.finalWord); achScr.AchFourteen(); achScr.AchFifteen(); achScr.AchSixteen(); achScr.AchSeventeen(); } else if (tail.finalWord == "") { // Do nothing } else { score = score - (tail.wpc / 2); tail.audio1.Play(); if (score <= 0) { score = 0; } tail.clearTail(); } tail.wpc = 0; LiveCheck(); setScore(); }