public void addCustomAmount() { Dictionary <string, object> data = new Dictionary <string, object>(); data.Add(StringFile.addCustomDataKey, this.customAmount); TinyEventBus.sharedBus().postEventForKey(StringFile.addCustom, data); }
void Start() { TinyEventBus.sharedBus().addObserver(this, StringFile.delete, "deleteEventRecieved"); }
public void deleteEventRecieved(Dictionary <string, object> data) { Destroy(this.gameObject); TinyEventBus.sharedBus().removeObserverForKey(StringFile.delete, this); }
public void add() { TinyEventBus.sharedBus().postEventForKey(StringFile.add); }
public void delete() { TinyEventBus.sharedBus().postEventForKey(StringFile.delete); }
void Start() { TinyEventBus.sharedBus().addObserver(this, StringFile.add, "addEventRecieved"); TinyEventBus.sharedBus().addObserver(this, StringFile.addCustom, "addCustomEventRecieved"); }