/// <summary> /// Used to get the players totalscore /// </summary> /// <returns></returns> public static int GetTotalScore() { var totalScore = PlayerPrefs.GetInt(TOTAL_SCORE, -1);//If we dont have any values saved if (totalScore == -1) { return(ObjectiveUtility.GetScore()); } else { return(totalScore); } }
public static void Reset() { PlayerPrefs.DeleteAll(); ObjectiveUtility.SetChapter(ObjectiveUtility.Chapter.None); }