Rename FireSound to OverlapSound

This commit is contained in:
Louis Hobbs 2023-07-03 21:58:46 +01:00
parent aee0b9fd66
commit df9a1af227
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -26,7 +26,7 @@ public:
FColor LightColor = FColor::White;
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
USoundBase* FireSound;
USoundBase* OverlapSound;
UPROPERTY(EditDefaultsOnly)
UParticleSystem* ParticleSystem;