diff --git a/Content/Blueprints/Characters/Player/BP_ExoPlayerCharacter.uasset b/Content/Blueprints/Characters/Player/BP_ExoPlayerCharacter.uasset index 641feaa..fdc8d4c 100644 Binary files a/Content/Blueprints/Characters/Player/BP_ExoPlayerCharacter.uasset and b/Content/Blueprints/Characters/Player/BP_ExoPlayerCharacter.uasset differ diff --git a/Content/Blueprints/Game/BP_ExoGameMode.uasset b/Content/Blueprints/Game/BP_ExoGameMode.uasset index 1621954..ecae00a 100644 Binary files a/Content/Blueprints/Game/BP_ExoGameMode.uasset and b/Content/Blueprints/Game/BP_ExoGameMode.uasset differ diff --git a/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp b/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp index 65c2dd0..007dd45 100644 --- a/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp +++ b/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp @@ -2,7 +2,6 @@ #include "Characters/ExoPlayerCharacter.h" - #include "Characters/Components/ShootingComponent.h" #include "GameFramework/CharacterMovementComponent.h" #include "Player/InteractionComponent.h" @@ -15,7 +14,7 @@ AExoPlayerCharacter::AExoPlayerCharacter() ShootingComponent = CreateDefaultSubobject(TEXT("Shooting Component")); - bUseControllerRotationPitch = true; + bUseControllerRotationPitch = false; bUseControllerRotationYaw = true; bUseControllerRotationRoll = false; } @@ -23,5 +22,5 @@ AExoPlayerCharacter::AExoPlayerCharacter() void AExoPlayerCharacter::BeginPlay() { Super::BeginPlay(); - check(InteractionComponent && ShootingComponent); + } diff --git a/Source/Exo/Public/Player/ExoPlayerController.h b/Source/Exo/Public/Player/ExoPlayerController.h index e2000e2..6a7053e 100644 --- a/Source/Exo/Public/Player/ExoPlayerController.h +++ b/Source/Exo/Public/Player/ExoPlayerController.h @@ -2,10 +2,10 @@ #pragma once +#include "Characters/Components/ShootingComponent.h" +#include "Player/InteractionComponent.h" #include "CoreMinimal.h" #include "GameFramework/PlayerController.h" -#include -#include #include "ExoPlayerController.generated.h" class AExoPlayerCharacter;