// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/PlayerController.h" #include "Blueprint/UserWidget.h" #include "FunnyPrinceController.generated.h" class UUserWidget; /** * */ UCLASS() class FUNNYPRINCE_API AFunnyPrinceController : public APlayerController { GENERATED_BODY() public: virtual void BeginPlay() override; virtual void GameHasEnded(class AActor* EndGameFocus = nullptr, bool bIsWinner = false) override; private: UPROPERTY(EditAnywhere) TSubclassOf HUDClass; UPROPERTY(EditAnywhere) TSubclassOf WinScreenClass; UPROPERTY(EditAnywhere) TSubclassOf LoseScreenClass; UPROPERTY(EditAnywhere) float RestartDelay = 5; FTimerHandle RestartTimer; UPROPERTY() UUserWidget* HUD; };