33 lines
827 B
C++
33 lines
827 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/PlayerController.h"
|
|
#include "SpaceshipPlayerController.generated.h"
|
|
|
|
UCLASS()
|
|
class MYPROJECT3_API ASpaceshipPlayerController : public APlayerController
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ASpaceshipPlayerController();
|
|
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
virtual void SetupInputComponent() override;
|
|
|
|
// Input Action for pausing
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Input")
|
|
class UInputAction* PauseAction;
|
|
|
|
// Input Mapping Context
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Input")
|
|
class UInputMappingContext* DefaultMappingContext;
|
|
|
|
private:
|
|
// Post process component for blur effect
|
|
UPROPERTY()
|
|
class UPostProcessComponent* BlurPostProcess;
|
|
|
|
void HandlePauseAction();
|
|
}; |