38 lines
867 B
C++
38 lines
867 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "PawnWithSkill.h"
|
|
|
|
|
|
// Sets default values
|
|
APawnWithSkill::APawnWithSkill()
|
|
{
|
|
// Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
}
|
|
|
|
void APawnWithSkill::ApplyyEndurance_Implementation(float enduranceOffset)
|
|
{
|
|
CurrentEndurance += enduranceOffset;;
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void APawnWithSkill::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
CurrentEndurance = MaxEndurance;
|
|
}
|
|
|
|
// Called every frame
|
|
void APawnWithSkill::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
}
|
|
|
|
// Called to bind functionality to input
|
|
void APawnWithSkill::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
|
|
{
|
|
Super::SetupPlayerInputComponent(PlayerInputComponent);
|
|
}
|
|
|