Hello,
Just a quick question, is there any reason for not checking for validity(existence) of a AGun* Gun
?
in ShooterCharacter.cpp:
void AShooterCharacter::Shoot()
{
Gun->PullTrigger();
}
Shouldn’t it be as we were taught:
void AShooterCharacter::Shoot()
{
if (Gun)
{
Gun->PullTrigger();
}
}