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); }
private void SubmitCurrentScore() { var Id = Guid.NewGuid().ToString(); var score = new SingleScoreData(Id, this.userData.Id, this.userData.name, Treasury.instance.currentMoney); SubmitScore(score); }
public abstract void PostSingleScore(SingleScoreData score, Action onSuccess = null, Action onFailure = null);
private void SubmitScore(SingleScoreData data) { connector.PostSingleScore(data, OnScoreSuccessfullySubmitted, OnScoreSubmissionFailed); }