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