public void UpdateScore() { HighScoreData score = new HighScoreData { score = FindObjectOfType <ScoreCounter>().score, player = "test player" }; StartCoroutine(_table.Update <HighScoreData>(score, OnUpdateScoreCompleted)); }
public void UpdateScore() { Highscore score = GetScore(); if (Validate(score)) { StartCoroutine(_table.Update <Highscore> (score, OnUpdateScoreCompleted)); } }
private void UpdateInventory() { RecalculateInventoryItems(); Debug.Log("Update:" + _inventory.ToString()); StartCoroutine(_table.Update <Inventory> (_inventory, OnUpdateCompleted)); }