Example #1
0
 /// Called when the inventory currency balance is pulled from ChilliConnect. Builds a local
 /// copy of the inventory that we can keep up to date
 ///
 /// @param request
 ///     Request
 /// @param response
 ///     Contents of the inventory
 ///
 private void OnCurrencyBalanceFetched(GetCurrencyBalanceRequest request, GetCurrencyBalanceResponse response)
 {
     Debug.Log("Inventory fetched: ");
     foreach (var item in response.Balances)
     {
         AddItem(item.Key, item.Balance);
     }
 }
Example #2
0
 private void UpdatePlayerCoinDisplay(GetCurrencyBalanceResponse response)
 {
     //Update to get by name rather than index, incase there is more than one currency...
     CurrencyBalanceRetrieved(response.Balances[0].Balance);
 }