Probably best to go with “IsA”
if(myGrabbedItem->IsA(ABaseWeapon::StaticClass()))
{
this->GrabWeapon(myGrabbedItem);
}
else
{
this->GrabItem(myGrabbedItem);
}
Probably best to go with “IsA”
if(myGrabbedItem->IsA(ABaseWeapon::StaticClass()))
{
this->GrabWeapon(myGrabbedItem);
}
else
{
this->GrabItem(myGrabbedItem);
}