#include "MyGameInstance.h"
void UMyGameInstance::Init() {
Super::Init();
UE_LOG(LogTemp, Log, TEXT("========================="));
UClass* ClassRuntime = GetClass();
UClass* ClassCompile = UMyGameInstance::StaticClass();
check(ClassRuntime == ClassCompile);
UE_LOG(LogTemp, Log, TEXT("School name %s"), *ClassRuntime->GetName());
SchoolName = TEXT("BJ_UNI");
UE_LOG(LogTemp, Log, TEXT("School name %s"), *SchoolName);
UE_LOG(LogTemp, Log, TEXT("CDO School name %s"), *GetClass()->GetDefaultObject<UMyGameInstance>()->SchoolName);
UE_LOG(LogTemp, Log, TEXT("========================="));
}
UMyGameInstance::UMyGameInstance()
{
SchoolName = TEXT("KAIST");
}