Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //获取用户的UUID
        _UUID = PlayerPrefs.GetString("UUID", null);
        //如果没有已经存在的UUID,生成新的UUID
        if (null == _UUID || "" == _UUID)
        {
            _UUID = Guid.NewGuid().ToString();
            //存储UUID
            PlayerPrefs.SetString("UUID", _UUID);
        }

        //从服务器中获取排名并且显示
        StartCoroutine(ServerConnect.ShowRanklist(NameTexts, ScoreTexts, _UUID));
    }