void UTankAimingComponent::TickComponent(...)
{
if (FiringState == EFiringState::OutOfAmmo)
{
return;
}
...
}
void UTankAimingComponent::Fire()
{
...
if (--RoundsLeft == 0) { FiringState = EFiringState::OutOfAmmo; }
}