TowerDefense/Source/TowerDefense/TowerDefensePlayerController.cpp
void ATowerDefensePlayerController::BeginPlay()
{
	Super::BeginPlay();

	GameMode = (ATowerDefenseGameMode*)GetWorld()->GetAuthGameMode();

	ControlledPawn = (ATowerDefensePlayerPawn*)AController::GetPawn();
}
// Called when the game starts or when spawned
Called when the game starts or when spawned
Called when the game starts or when spawned
void ATowerDefensePlayerController::BeginPlay()
{
	Super::BeginPlay();
	GameMode = (ATowerDefenseGameMode*)GetWorld()->GetAuthGameMode();
	ControlledPawn = (ATowerDefensePlayerPawn*)AController::GetPawn();
}
void ATowerDefensePlayerController :: BeginPlay ( ) { Super :: BeginPlay ( ) ; GameMode = ( ATowerDefenseGameMode * ) GetWorld ( ) -> GetAuthGameMode ( ) ; ControlledPawn = ( ATowerDefensePlayerPawn * ) AController :: GetPawn ( ) ; }
Called when the game starts or when spawned
Called when the game starts or when spawned