/// <summary> /// Checks some secret stuff. Not going to use this. Not worth it. /// </summary> private void checkHash() { float hash = SecretStuff.getHash2(); float savedHash = PlayerPrefs.GetInt("hash"); Debug.Log("hash: " + hash + ", savedHash: " + savedHash); }
public void OnDestroy() { PlayerPrefs.SetInt("hash", SecretStuff.getHash2()); }
void OnApplicationQuit() { PlayerPrefs.SetInt("hash", SecretStuff.getHash2()); }