示例#1
0
        public SakuraEvent <T> RemoveListener(SakuraAction <T> action)
        {
            var actions = new List <SakuraAction <T> >(listeners);

            actions.Remove(action);
            return(new SakuraEvent <T>(actions));
        }
示例#2
0
 public void Unsubscribe(SakuraAction <int> action)
 {
     onUpdate = onUpdate.RemoveListener(action);
 }
示例#3
0
 public void Subscribe(SakuraAction <int> action)
 {
     onUpdate = onUpdate.AddListener(action);
 }