Rename FireSound to OverlapSound
This commit is contained in:
parent
aee0b9fd66
commit
df9a1af227
|
@ -53,9 +53,9 @@ void APickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* O
|
|||
{
|
||||
if (Cast<APlayerCharacter>(OtherActor))
|
||||
{
|
||||
if (FireSound)
|
||||
if (OverlapSound)
|
||||
{
|
||||
UGameplayStatics::PlaySoundAtLocation(this, FireSound, this->ActorToWorld().GetLocation());
|
||||
UGameplayStatics::PlaySoundAtLocation(this, OverlapSound, this->ActorToWorld().GetLocation());
|
||||
}
|
||||
|
||||
if (ParticleSystem)
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
FColor LightColor = FColor::White;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
USoundBase* FireSound;
|
||||
USoundBase* OverlapSound;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UParticleSystem* ParticleSystem;
|
||||
|
|
Loading…
Reference in New Issue