forked from Tencent/UnLua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rowechien
committed
Jan 2, 2020
1 parent
2a5b86d
commit e9ba597
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
}; |