diff --git a/Source/Nakatomi/Pickup.cpp b/Source/Nakatomi/Pickup.cpp index 0c8469b..80b425d 100644 --- a/Source/Nakatomi/Pickup.cpp +++ b/Source/Nakatomi/Pickup.cpp @@ -53,9 +53,9 @@ void APickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* O { if (Cast(OtherActor)) { - if (FireSound) + if (OverlapSound) { - UGameplayStatics::PlaySoundAtLocation(this, FireSound, this->ActorToWorld().GetLocation()); + UGameplayStatics::PlaySoundAtLocation(this, OverlapSound, this->ActorToWorld().GetLocation()); } if (ParticleSystem) diff --git a/Source/Nakatomi/Pickup.h b/Source/Nakatomi/Pickup.h index 31302c6..454e5c2 100644 --- a/Source/Nakatomi/Pickup.h +++ b/Source/Nakatomi/Pickup.h @@ -26,7 +26,7 @@ public: FColor LightColor = FColor::White; UPROPERTY(EditDefaultsOnly, BlueprintReadWrite) - USoundBase* FireSound; + USoundBase* OverlapSound; UPROPERTY(EditDefaultsOnly) UParticleSystem* ParticleSystem;