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(); }
public static void DestroyPortion(OnCollect portion) { Destroy(portion.gameObject); }