예제 #1
0
 public static void PublishPowerupCollectedEvent()
 {
     PowerupCollected?.Invoke();
 }
예제 #2
0
 public void Collect()
 {
     PowerupCollected?.Invoke(powerupType);
     Destroy(gameObject);
 }