// Fill out your copyright notice in the Description page of Project Settings. #include "Characters/ExoPlayerCharacter.h" #include "Characters/Components/ShootingComponent.h" #include "GameFramework/CharacterMovementComponent.h" #include "Player/InteractionComponent.h" AExoPlayerCharacter::AExoPlayerCharacter() { GetCharacterMovement()->bSnapToPlaneAtStart = true; InteractionComponent = CreateDefaultSubobject(TEXT("Interaction Component")); ShootingComponent = CreateDefaultSubobject(TEXT("Shooting Component")); bUseControllerRotationPitch = true; bUseControllerRotationYaw = true; bUseControllerRotationRoll = false; } void AExoPlayerCharacter::BeginPlay() { Super::BeginPlay(); check(InteractionComponent && ShootingComponent); }