示例#1
0
    /// <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);
    }
示例#2
0
 public void OnDestroy()
 {
     PlayerPrefs.SetInt("hash", SecretStuff.getHash2());
 }
示例#3
0
 void OnApplicationQuit()
 {
     PlayerPrefs.SetInt("hash", SecretStuff.getHash2());
 }