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