IncrementCollectedLevelKeys instead of InitialLevelKeys
This commit is contained in:
parent
532bcc7e66
commit
cffef34d9b
|
@ -26,7 +26,7 @@ void ALevelKeyPickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, A
|
|||
{
|
||||
if (auto gameInstance = Cast<UNakatomiGameInstance>(UGameplayStatics::GetGameInstance(GetWorld())))
|
||||
{
|
||||
gameInstance->GetCurrentLevelManager()->IncrementInitialLevelKeys();
|
||||
gameInstance->GetCurrentLevelManager()->IncrementCollectedLevelKeys();
|
||||
}
|
||||
|
||||
Super::OnOverlapBegin(OverlappedComponent, OtherActor, OtherComp, OtherBodyIndex, bFromSweep, SweepResult);
|
||||
|
|
Loading…
Reference in New Issue