Clean up base weapon class

This commit is contained in:
baz 2025-02-03 20:15:22 +00:00
parent 547c3d340d
commit 390b50547b

View File

@ -17,19 +17,12 @@ void AWeapon::BeginPlay()
{
Super::BeginPlay();
TArray<AWeapon*> example;
GetWorldTimerManager().SetTimer(WeaponTimerHandle, this, &AWeapon::FireWeaponAction, WeaponCooldown, true);
UEXPComponent* expcomponent = GetOwner()->GetComponentByClass<UEXPComponent>();
if (expcomponent)
{
//expcomponent->OnEXPLevelUp.AddUniqueDynamic(this, &AWeapon::UpgradeWeapon);
}
}
void AWeapon::FireWeaponAction_Implementation()
{
// Do stuff
// This should be overridden in child weapon classes
}
bool AWeapon::UpgradeWeapon()