-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShooterPlayerController.h
More file actions
38 lines (30 loc) · 934 Bytes
/
Copy pathShooterPlayerController.h
File metadata and controls
38 lines (30 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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"
/**
*
*/
UCLASS()
class SIMPLE_SHOOTER_API AShooterPlayerController : public APlayerController
{
GENERATED_BODY()
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
virtual void GameHasEnded(class AActor *EndGameFocus = nullptr, bool bIsWinner = false) override;
UPROPERTY(EditAnywhere)
float RestartDelay = 5.f;
FTimerHandle RestartTimer;
private:
UPROPERTY(EditAnywhere)
TSubclassOf<class UUserWidget> LoseScreenClass;
UPROPERTY(EditAnywhere)
TSubclassOf<class UUserWidget> WinScreenClass;
UPROPERTY(EditAnywhere)
TSubclassOf<class UUserWidget> HUDClass;
UPROPERTY(EditAnywhere)
class UUserWidget* HUD;
};