Apoloy in advance. I am very new to unreal and cpp. The questions might be silly…
- In PawnTurret.h,
APawnTank* PlayerPawn;
why we don’t need to set nullptr to it here? Is it necessary to everytime intialize a pointer as nullptr?
- In PawnTurret.h and cpp,
why we don’t need to declare the PawnTurrent class and define it in cpp like what we do for tank?
public:
APawnTurret();
APawnTurret::APawnTurret()
{
}