Exemplo n.º 1
0
 public void Subscribe(SakuraAction <int> action)
 {
     onUpdate = onUpdate.AddListener(action);
 }
Exemplo n.º 2
0
 public void Unsubscribe(SakuraAction <int> action)
 {
     onUpdate = onUpdate.RemoveListener(action);
 }
Exemplo n.º 3
0
 public Wallet(int startingBalance, SakuraEvent <int> onUpdate)
 {
     balance       = startingBalance;
     this.onUpdate = onUpdate;
 }