コード例 #1
0
ファイル: AnimatorTrigger.cs プロジェクト: dqtoy/GGJ2020
 public void SetTrigger()
 {
     if (SetEvent != null)
     {
         SetEvent.Invoke();
     }
 }
コード例 #2
0
 public void Call_SetEvent(object sender, Tuple <int, T> e)
 {
     if (e.Item1 < Items.Count)
     {
         SetEvent?.Invoke(sender, e);
     }
 }
コード例 #3
0
 protected void Set(int pos, T item)
 {
     if (pos < Items.Count)
     {
         SetEvent?.Invoke(this, new Tuple <int, T>(pos, item));
         Items[pos] = item;
     }
 }
コード例 #4
0
        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);
 }
コード例 #6
0
 protected void Set(int position, T item)
 {
     SetCount++;
     Items[position] = item;
     SetEvent?.Invoke(this, new Tuple <int, T>(position, item));
 }
コード例 #7
0
 public R this[P parm]
 {
     get { return(GetEvent.Invoke(parm)); }
     set { SetEvent.Invoke(parm, value); }
 }
コード例 #8
0
        public void Add(GameObject item)
        {
            bool result = m_items.Add(item);

            onAdded.Invoke(item);
        }
コード例 #9
0
        public void Set(T[] items, T item, int index)
        {
            items[index] = item;

            SetEvent?.Invoke(this, new Tuple <T, int>(item, index));
        }
コード例 #10
0
ファイル: Sorter.cs プロジェクト: ShockByteX/SortAlgorithms
        private void OnSet(object sender, Tuple <T, int> e)
        {
            _result.SetsCount++;

            SetEvent?.Invoke(this, e);
        }