public void UnsubscribeFromCurrencyChange(CurrencyType type, MonoActionInt callback) { if (hasCurrencySystem) { currencies.UnsubscribeFromCurrencyChange(type, callback); } }
void bufferChangeCurrencyDelegate(CurrencyType type, MonoActionInt callback) { Queue <MonoActionInt> bufferedCallbacks; if (!currencyChangeDelegateBuffers.TryGetValue(type, out bufferedCallbacks)) { bufferedCallbacks = new Queue <MonoActionInt>(); } bufferedCallbacks.Enqueue(callback); }
public void SubscribeToCurrencyChange(CurrencyType type, MonoActionInt callback) { if (hasCurrencySystem) { currencies.SubscribeToCurrencyChange(type, callback); } else { bufferChangeCurrencyDelegate(type, callback); } }
public void UnsubscribeFromCurrencyChange(CurrencyType type, MonoActionInt callback) { dataController.UnsubscribeFromCurrencyChange(type, callback); }
public void SubscribeToCurrencyChange(CurrencyType type, MonoActionInt callback) { dataController.SubscribeToCurrencyChange(type, callback); }