Implemented Dialogue System using dialogue Component and Interface, make Dialogue UI Prototype, and change the data type of the characters to be displayed in the UI in source code
23 lines
730 B
C++
23 lines
730 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "HYSaveGameActor.h"
|
|
#include "HYPlayerCharacController.h"
|
|
|
|
AHYSaveGameActor::AHYSaveGameActor()
|
|
{
|
|
SavepointMesh = CreateDefaultSubobject<UStaticMeshComponent>("SavepointMesh");
|
|
RootComponent = Cast<USceneComponent>(SavepointMesh);
|
|
|
|
Super::Name = NSLOCTEXT("HYSaveGameActor", "InteractionName", "Haetae statue");
|
|
Super::Action = NSLOCTEXT("HYSaveGameActor", "InteractionAction", "touch");
|
|
}
|
|
|
|
void AHYSaveGameActor::Interact_Implementation(APlayerController* Controller)
|
|
{
|
|
Super::Interact_Implementation(Controller);
|
|
|
|
AHYPlayerCharacController* IController = Cast<AHYPlayerCharacController>(Controller);
|
|
IController->SaveGameplay();
|
|
}
|