fix: multiple issuse
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "SkillTreeManager.h"
|
||||
#include "SkillTreeSubsystem.h"
|
||||
#include "SkillTreeComponent.h"
|
||||
#include "Engine/World.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
|
||||
@@ -12,18 +12,32 @@ AUTAD_UIGameMode::AUTAD_UIGameMode()
|
||||
|
||||
// set default pawn class to our Blueprinted character
|
||||
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(
|
||||
TEXT("/Game/Blueprints/BP_TopDownCharacter"));
|
||||
if (PlayerPawnBPClass.Class != nullptr)
|
||||
TEXT("/Game/Blueprints/BP_MainCharacter"));
|
||||
if (PlayerPawnBPClass.Class)
|
||||
{
|
||||
DefaultPawnClass = PlayerPawnBPClass.Class;
|
||||
}
|
||||
else
|
||||
{
|
||||
UE_LOG(
|
||||
LogTemp, Error,
|
||||
TEXT(
|
||||
"AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainCharacter. Please ensure it exists"));
|
||||
}
|
||||
|
||||
// set default controller to our Blueprinted controller
|
||||
static ConstructorHelpers::FClassFinder<APlayerController>
|
||||
PlayerControllerBPClass(
|
||||
TEXT("/Game/Blueprints/BP_TopDownPlayerController"));
|
||||
if (PlayerControllerBPClass.Class != NULL)
|
||||
TEXT("/Game/Blueprints/BP_MainPlayerController"));
|
||||
if (PlayerControllerBPClass.Class)
|
||||
{
|
||||
PlayerControllerClass = PlayerControllerBPClass.Class;
|
||||
}
|
||||
else
|
||||
{
|
||||
UE_LOG(
|
||||
LogTemp, Error,
|
||||
TEXT(
|
||||
"AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainPlayerController. Please ensure it exists"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user