// All content (c) Shaun Reed 2021, all rights reserved #pragma once #include "CoreMinimal.h" #include "GameFramework/Character.h" #include "ThirdPersonCharacter.generated.h" UCLASS() class THIRDPERSON_API AThirdPersonCharacter : public ACharacter { GENERATED_BODY() public: // Sets default values for this character's properties AThirdPersonCharacter(); protected: // Called when the game starts or when spawned virtual void BeginPlay() override; UPROPERTY(VisibleAnywhere, BlueprintReadWrite) class USpringArmComponent* SpringArmComp; UPROPERTY(VisibleAnywhere, BlueprintReadWrite) class UCameraComponent* CameraComp; // Input actions void SpawnActors(); void DestroyActors(); void MoveForward(float InputAxis); void MoveRight(float InputAxis); void BeginSprint(); void EndSprint(); void BeginCrouch(); void EndCrouch(); public: // Called every frame virtual void Tick(float DeltaTime) override; // Called to bind functionality to input virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; };