Make `OnFire` a virtual function
This commit is contained in:
parent
f7216d25f9
commit
60deefdf96
|
@ -208,6 +208,10 @@ int ANakatomiCharacter::GetCurrentInventorySlot()
|
|||
return CurrentInventorySlot;
|
||||
}
|
||||
|
||||
void ANakatomiCharacter::OnFire()
|
||||
{
|
||||
}
|
||||
|
||||
void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -79,6 +79,8 @@ public:
|
|||
|
||||
int GetCurrentInventorySlot();
|
||||
|
||||
virtual void OnFire();
|
||||
|
||||
protected:
|
||||
|
||||
virtual void CalculateHits(TArray<FHitResult>* hits);
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
|
||||
void WeaponSwitchingCallback(const FInputActionInstance& Instance);
|
||||
|
||||
void OnFire();
|
||||
virtual void OnFire() override;
|
||||
|
||||
void WeaponCooldownHandler();
|
||||
|
||||
|
|
Loading…
Reference in New Issue