Skip to content

Commit

Permalink
add TPSCharacter for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rowechien committed Jan 2, 2020
1 parent 2a5b86d commit e9ba597
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
Binary file modified Content/Core/Blueprints/BP_CharacterBase.uasset
Binary file not shown.
34 changes: 34 additions & 0 deletions Source/TPSProject/TPSCharacter.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Fill out your copyright notice in the Description page of Project Settings.


#include "TPSCharacter.h"

// Sets default values
ATPSCharacter::ATPSCharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;

}

// Called when the game starts or when spawned
void ATPSCharacter::BeginPlay()
{
Super::BeginPlay();

}

// Called every frame
void ATPSCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);

}

// Called to bind functionality to input
void ATPSCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);

}

29 changes: 29 additions & 0 deletions Source/TPSProject/TPSCharacter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "TPSCharacter.generated.h"

UCLASS()
class TPSPROJECT_API ATPSCharacter : public ACharacter
{
GENERATED_BODY()

public:
// Sets default values for this character's properties
ATPSCharacter();

protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;

public:
// Called every frame
virtual void Tick(float DeltaTime) override;

// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

};

0 comments on commit e9ba597

Please sign in to comment.