The controller may change during the game. Instead of adding a new member variable I would add a method like this and call it when needed
ATBPlayerController* GetATBPlayerController() const
{
return Cast<ATBPlayerController>(Controller);
}
The controller may change during the game. Instead of adding a new member variable I would add a method like this and call it when needed
ATBPlayerController* GetATBPlayerController() const
{
return Cast<ATBPlayerController>(Controller);
}