public SakuraEvent <T> RemoveListener(SakuraAction <T> action) { var actions = new List <SakuraAction <T> >(listeners); actions.Remove(action); return(new SakuraEvent <T>(actions)); }
public void Unsubscribe(SakuraAction <int> action) { onUpdate = onUpdate.RemoveListener(action); }
public void Subscribe(SakuraAction <int> action) { onUpdate = onUpdate.AddListener(action); }