29 PrimaryActorTick.bCanEverTick =
true;
31 RootSceneComp = CreateDefaultSubobject<USceneComponent>(TEXT(
"RootSceneComp"));
34 KioskMeshComp = CreateDefaultSubobject<UStaticMeshComponent>(TEXT(
"KioskMeshComp"));
37 WidgetGuideComp = CreateDefaultSubobject<UWidgetComponent>(TEXT(
"WidgetGuideComp"));
39 WidgetGuideComp->SetRelativeLocationAndRotation(FVector(0, 0, 220), FRotator(0, 90, 0));
41 ConstructorHelpers::FClassFinder<UUserWidget> widgetGuideRef(TEXT(
"/Game/CustomContents/UI/Widgets/WBP_QuestionnaireKioskGuideWidget.WBP_QuestionnaireKioskGuideWidget_C"));
42 if (widgetGuideRef.Succeeded())
47 InteractableComp = CreateDefaultSubobject<UInteractableComponent>(TEXT(
"InteractableComp"));
51 BoxComp = CreateDefaultSubobject<UBoxComponent>(TEXT(
"BoxComp"));
52 BoxComp->SetupAttachment(GetRootComponent());
53 BoxComp->SetRelativeLocation(FVector(0, 36, 75));
54 BoxComp->SetBoxExtent(FVector(60, 65, 92));
56 WidgetComp = CreateDefaultSubobject<UWidgetComponent>(TEXT(
"WidgetComp"));
58 if (WidgetRef.Succeeded())
61 WidgetComp->SetupAttachment(GetRootComponent());
62 WidgetComp->SetWidgetSpace(EWidgetSpace::Screen);
63 WidgetComp->SetDrawSize(FVector2D(2048.0f, 1024.0f));
93 if (
APlayerActor* player = Cast<APlayerActor>(Interactor))
95 if (
APlayerControl* pc = Cast<APlayerControl>(player->GetController()))
101 if (
auto KLingoNetwork = UKLingoNetworkSystem::Get(GetWorld()))
106 PRINTLOG(TEXT(
"QuestionnaireData is valid"));
111 PRINTLOG(TEXT(
"QuestionnaireData is invalid"));
119 GS->SetAllCompassVisibility(
false);
120 GS->SetCompassVisibilityByTag(
"FinalResult",
true);