| 71 | } |
| 72 | |
| 73 | void APickup::Destroyed() |
| 74 | { |
| 75 | Super::Destroyed(); |
| 76 | |
| 77 | if (PickupSound) |
| 78 | { |
| 79 | UGameplayStatics::PlaySoundAtLocation( |
| 80 | this, |
| 81 | PickupSound, |
| 82 | GetActorLocation() |
| 83 | ); |
| 84 | } |
| 85 | if (PickupEffect) |
| 86 | { |
| 87 | UNiagaraFunctionLibrary::SpawnSystemAtLocation( |
| 88 | this, |
| 89 | PickupEffect, |
| 90 | GetActorLocation(), |
| 91 | GetActorRotation() |
| 92 | ); |
| 93 | } |
| 94 | } |
| 95 |
nothing calls this directly
no outgoing calls
no test coverage detected