コード例 #1
0
    public override void PostSingleScore(SingleScoreData score, Action onSuccess = null, Action onFailure = null)
    {
        Debug.Log("PostSingleScore called");
        var url = $"{databaseURL}scores.json?auth={currentLoginData.idToken}";

        Post <SingleScoreData>(url, score, onSuccess, onFailure);
    }
コード例 #2
0
    private void SubmitCurrentScore()
    {
        var Id    = Guid.NewGuid().ToString();
        var score = new SingleScoreData(Id, this.userData.Id, this.userData.name, Treasury.instance.currentMoney);

        SubmitScore(score);
    }
コード例 #3
0
 public abstract void PostSingleScore(SingleScoreData score, Action onSuccess     = null, Action onFailure = null);
コード例 #4
0
 private void SubmitScore(SingleScoreData data)
 {
     connector.PostSingleScore(data, OnScoreSuccessfullySubmitted, OnScoreSubmissionFailed);
 }