Game Development Reference
In-Depth Information
TimePlayed(PlayerPrefs.GetFloat("PlayerTimePlayed"));
break;
}
}
Checking all of the achievements
The CheckAllAchievements function will allow us to check all the achievements.
Let's add the function now:
void CheckAllAchievements()
{
Kills(PlayerPrefs.GetInt("PlayerKills"));
TotalGold(PlayerPrefs.GetInt("PlayerTotalGold"));
GoldSpent(PlayerPrefs.GetInt("PlayerGoldSpent"));
Level(PlayerPrefs.GetInt("PlayerLevel"));
RoundsWon(PlayerPrefs.GetInt("PlayerRoundsWon"));
TimePlayed(PlayerPrefs.GetFloat("PlayerTimePlayed"));
Search WWH ::




Custom Search