Added Checkpoint Completion Confirmation UI

This commit is contained in:
Rafal Swierczek 2023-10-28 14:21:58 +01:00
parent 7ab8735ed1
commit ce5bde5f34
11 changed files with 26 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,7 @@
#include "CoreMinimal.h"
#include "WaypointActor.h"
#include "EndlessVendetta/EndlessVendettaCharacter.h"
#include "GameFramework/Actor.h"
#include "CheckpointClass.generated.h"
@ -33,7 +34,7 @@ protected:
UFUNCTION(BlueprintCallable, Category = "Checkpoint")
void BroadcastCompletion()
{
UE_LOG(LogTemp, Warning, TEXT("Completed Checkpoint"));
Cast<AEndlessVendettaCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->CheckpointCompletedUI();
CompletedCheckpoint.Broadcast();
}

View File

@ -177,4 +177,7 @@ public:
void EquipSecondary();
void WeaponSwitcher(AActor* Outhit);
UFUNCTION(BlueprintImplementableEvent)
void CheckpointCompletedUI();
};