Esempio n. 1
0
    private static PlayerConfig_Extra randomlizeConfig(PlayerConfig playerConfig)
    {
        string             playerConfigString = JsonConvert.SerializeObject(playerConfig);
        PlayerConfig_Extra playerConfigExtra  = JsonConvert.DeserializeObject <PlayerConfig_Extra>(playerConfigString);

        playerConfigExtra.API_key = webAPI_key;
        playerConfigExtra.ticket  = ticket;
        return(playerConfigExtra);
    }
Esempio n. 2
0
    public static string SHA256(PlayerConfig playerConfig)
    {
        PlayerConfig_Extra playerConfigExtra = randomlizeConfig(playerConfig);
        string             hashFirst         = JsonConvert.SerializeObject(playerConfigExtra);

        Debug.Log(hashFirst);
        string hashSecond = SHA256(hashFirst);

        return(hashSecond);
    }