public void SetTrigger() { if (SetEvent != null) { SetEvent.Invoke(); } }
public void Call_SetEvent(object sender, Tuple <int, T> e) { if (e.Item1 < Items.Count) { SetEvent?.Invoke(sender, e); } }
protected void Set(int pos, T item) { if (pos < Items.Count) { SetEvent?.Invoke(this, new Tuple <int, T>(pos, item)); Items[pos] = item; } }
public bool Remove(GameObject item) { bool result = m_items.Remove(item); onRemoved.Invoke(item); if (Count == 0) { onEmpty.Invoke(); } return(result); }
public void Awake() { setter.Invoke(placeholder.text); }
protected void Set(int position, T item) { SetCount++; Items[position] = item; SetEvent?.Invoke(this, new Tuple <int, T>(position, item)); }
public R this[P parm] { get { return(GetEvent.Invoke(parm)); } set { SetEvent.Invoke(parm, value); } }
public void Add(GameObject item) { bool result = m_items.Add(item); onAdded.Invoke(item); }
public void Set(T[] items, T item, int index) { items[index] = item; SetEvent?.Invoke(this, new Tuple <T, int>(item, index)); }
private void OnSet(object sender, Tuple <T, int> e) { _result.SetsCount++; SetEvent?.Invoke(this, e); }