Ejemplo n.º 1
0
    public void mySpecialFunction()
    {
        string str2 = PlayerPrefs.GetString("UserEmail");

        g3.SetUserName3(str2);
        string str1 = PlayerPrefs.GetString("dicDateTime4");

        g3.SetDateTime3(str1);
        int int2 = PlayerPrefs.GetInt("Score4");

        g3.SetScore3(int2);

        //rockPaperScissorhis.Clear ();

        foreach (Game3 myGame in rockPaperScissorhis)
        {
            if (myGame.DateTime3 == str1 && myGame.userName == str2)
            {
                rockPaperScissorhis.Remove(myGame);
            }
        }
        rockPaperScissorhis.Add(new Game3(str2, str1, int2));

        //Debug.Log (rockPaperScissorhis .Count());
        SaveData();
        flag = false;
    }