Exemple #1
0
    public void GetVersion()
    {
        int    playerID = PlayerPrefs.GetInt(PrefEnum.PLAYER_ID.ToString(), 0);
        string token    = PlayerPrefs.GetString(PrefEnum.TOKEN.ToString(), string.Empty);

        if (playerID != 0 && token != string.Empty)
        {
            Logger.E("pID: " + playerID);
            Logger.E("token: " + token);
            api.SetPlayerId(playerID);
            api.SetToken(token);
            api.GetVersion(playerID, token);
        }
        else
        {
            api.GetVersion();
        }
    }