Make `OnFire` a virtual function

This commit is contained in:
Louis Hobbs 2023-03-13 22:01:21 +00:00
parent f7216d25f9
commit 60deefdf96
3 changed files with 7 additions and 1 deletions

View File

@ -208,6 +208,10 @@ int ANakatomiCharacter::GetCurrentInventorySlot()
return CurrentInventorySlot;
}
void ANakatomiCharacter::OnFire()
{
}
void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
{
}

View File

@ -79,6 +79,8 @@ public:
int GetCurrentInventorySlot();
virtual void OnFire();
protected:
virtual void CalculateHits(TArray<FHitResult>* hits);

View File

@ -116,7 +116,7 @@ public:
void WeaponSwitchingCallback(const FInputActionInstance& Instance);
void OnFire();
virtual void OnFire() override;
void WeaponCooldownHandler();