Ejemplo n.º 1
0
 public void UnsubscribeFromCurrencyChange(CurrencyType type, MonoActionInt callback)
 {
     if (hasCurrencySystem)
     {
         currencies.UnsubscribeFromCurrencyChange(type, callback);
     }
 }
Ejemplo n.º 2
0
    void bufferChangeCurrencyDelegate(CurrencyType type, MonoActionInt callback)
    {
        Queue <MonoActionInt> bufferedCallbacks;

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