I'm working on an idle clicker game and all seems perfect until the money value hits over 2billion, then the value changes to negative.. It seems unity playerpref have an issue with values over 2,154,000,000...how can I fix this, Below code saves and loads the score..
public int LoadCoinsAmount()
{
return PlayerPrefs.GetInt("COINS");
}
public void SaveCoinsAmount(int coins)
{
PlayerPrefs.SetInt("COINS", coins);
}
..Please help