35 lines
953 B
C++
35 lines
953 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/PlayerController.h"
|
|
#include "ShooterPlayerController.generated.h"
|
|
|
|
class UUserWidget;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class SHOOTER_API AShooterPlayerController : public APlayerController
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
AShooterPlayerController();
|
|
virtual void GameHasEnded(class AActor* EndGameFocus = nullptr, bool bIsWinner = false) override;
|
|
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
|
|
private:
|
|
|
|
/** Reference to the overall HUD Overlay Blueprint class */
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Widgets, meta = (AllowPrivateAccess = "true"))
|
|
TSubclassOf<UUserWidget> HUDOverlayClass;
|
|
|
|
/** Variable to hold the HUD Overlay Widget after creating it */
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Widgets, meta = (AllowPrivateAccess = "true"))
|
|
UUserWidget* HUDOverlay;
|
|
};
|