Example #1
0
 public static void SignalPickupDespawned(Pickup pickup) => PickupDespawned?.Invoke(pickup);
Example #2
0
 private void OnPickupDespawned(Pickup pickup) => pickups.Remove(pickup.transform);
Example #3
0
 public PickupDrop()
 {
     dropChance   = 100;
     pickupToDrop = null;
 }
Example #4
0
 private void OnPickupSpawned(Pickup pickup) => pickups.Add(pickup.transform);