0e42abd151
This reverts commit c07d621e9b
.
41 lines
692 B
C++
41 lines
692 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "HYWeapon.h"
|
|
|
|
// Sets default values
|
|
AHYWeapon::AHYWeapon()
|
|
{
|
|
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
}
|
|
|
|
AHYWeapon::AHYWeapon(float atkDmg, float critDmg, float critRt)
|
|
{
|
|
attackDamage = atkDmg;
|
|
critDamage = critDmg;
|
|
critRate = critRt;
|
|
|
|
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void AHYWeapon::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void AHYWeapon::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|
|
void AHYWeapon::UseWeapon(AHYEnemy* target)
|
|
{
|
|
}
|
|
|