Exemple #1
0
    void SendScore()
    {
        var data = new Dictionary <string, string>()
        {
            { "score", score.ToString() },
            { "check", EcoBuilder.Postman.Encrypt(score.ToString()) },
            { "__address__", address },
        };

        pat.Post(data, (b, s) => leaderboard.text = s);
    }
Exemple #2
0
        public void RegisterRemote(Action <bool, string> OnCompletion)
        {
            var data = new Dictionary <string, string>()
            {
                { "username", player.username },
                { "password", player.passwordEncrypted },
                { "email", player.emailEncrypted },

                // these two are potentially set from someone who did not create an account at first
                { "reversed", player.reverseDrag? "1":"0" },
                { "highscores", ComposeRegistrationScores() },

                { "__address__", ServerURL + "register.php" },
            };

            pat.Post(data, OnCompletion);
        }