Exemplo n.º 1
0
 public void Collect(GameObject item)
 {
     // trigger the event
     OnCollect?.Invoke(item);
     isSelecting = false;
 }
Exemplo n.º 2
0
 public void AddSmallCollectible()
 {
     CollectiblesSmall += 1;
     OnCollect.Invoke();
 }
Exemplo n.º 3
0
 public void AddLargeCollectible()
 {
     CollectiblesLarge += 1;
     OnCollect.Invoke();
 }
Exemplo n.º 4
0
 public static void DestroyPortion(OnCollect portion)
 {
     Destroy(portion.gameObject);
 }