IncrementCollectedLevelKeys instead of InitialLevelKeys

This commit is contained in:
baz 2024-03-11 21:14:13 +00:00
parent 532bcc7e66
commit cffef34d9b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ void ALevelKeyPickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, A
{ {
if (auto gameInstance = Cast<UNakatomiGameInstance>(UGameplayStatics::GetGameInstance(GetWorld()))) if (auto gameInstance = Cast<UNakatomiGameInstance>(UGameplayStatics::GetGameInstance(GetWorld())))
{ {
gameInstance->GetCurrentLevelManager()->IncrementInitialLevelKeys(); gameInstance->GetCurrentLevelManager()->IncrementCollectedLevelKeys();
} }
Super::OnOverlapBegin(OverlappedComponent, OtherActor, OtherComp, OtherBodyIndex, bFromSweep, SweepResult); Super::OnOverlapBegin(OverlappedComponent, OtherActor, OtherComp, OtherBodyIndex, bFromSweep, SweepResult);