34 lines
898 B
C++
34 lines
898 B
C++
#include "Level/Actor/BusyPlayerRole.h"
|
|
#include "Camera/CameraComponent.h"
|
|
#include "GameFramework/SpringArmComponent.h"
|
|
|
|
ABusyPlayerRole::ABusyPlayerRole()
|
|
{
|
|
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
|
|
SpringArmComponent = CreateDefaultSubobject<USpringArmComponent>(TEXT("SpringArmComponent"));
|
|
|
|
SpringArmComponent->SetupAttachment(SpineRoot);
|
|
CameraComponent->SetupAttachment(SpringArmComponent);
|
|
|
|
CameraComponent->SetOrthoWidth(3840);
|
|
CameraComponent->SetProjectionMode(ECameraProjectionMode::Orthographic);
|
|
|
|
SpringArmComponent->SetRelativeRotation(FRotator(0, -90.0, 0.0));
|
|
|
|
Attribute = CreateDefaultSubobject<UBusyPlayerRoleAttributeSet>(TEXT("Attribute"));
|
|
|
|
InitMoveSpeed(200);
|
|
InitHealth(100, 100);
|
|
}
|
|
|
|
void ABusyPlayerRole::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
InitRoleAttributes();
|
|
}
|
|
|
|
void ABusyPlayerRole::InitRoleAttributes()
|
|
{
|
|
|
|
}
|