Answer the question
In order to leave comments, you need to log in
Why doesn't the OnApplicationQuit() method work?
void Awake()
{
sympathy = PlayerPrefs.GetInt("sympathy", 0);
allSympathies = PlayerPrefs.GetInt("allSympathies", 0);
sympathyBonus = PlayerPrefs.GetInt("sympathyBonus", 1);
}
private void OnApplicationQuit()
{
PlayerPrefs.SetInt("sympathy", sympathy);
PlayerPrefs.SetInt("allSympathies", allSympathies);
PlayerPrefs.SetInt("sympathyBonus", sympathyBonus);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question