diff --git a/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.cpp b/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.cpp index 20779101..4446d95c 100644 --- a/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.cpp +++ b/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.cpp @@ -4,7 +4,6 @@ #include "HYPlayerCharacController.h" #include "HYGameStateBase.h" #include "hwanyoung2Character.h" -#include "EnhancedInputComponent.h" AHYPlayerCharacController::AHYPlayerCharacController() { @@ -48,19 +47,9 @@ void AHYPlayerCharacController::Interact() void AHYPlayerCharacController::SetupInputComponent() { Super::SetupInputComponent(); - - if (UEnhancedInputComponent* EnhancedInputComponent = CastChecked(InputComponent)) { - EnhancedInputComponent->BindAction( - InteractAction, ETriggerEvent::Triggered, - this, &AHYPlayerCharacController::Interact); - EnhancedInputComponent->BindAction( - ToggleInventoryAction, ETriggerEvent::Triggered, - this, &AHYPlayerCharacController::ReloadInventory); - - } } void AHYPlayerCharacController::OnPossess(APawn* InPawn) { - + Super::OnPossess(InPawn); } diff --git a/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.h b/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.h index 3e16c974..42df68d5 100644 --- a/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.h +++ b/hwanyoung2/Source/hwanyoung2/HYPlayerCharacController.h @@ -4,7 +4,6 @@ #include "HYInteractableActor.h" #include "InventoryItem.h" -#include "InputAction.h" #include "CoreMinimal.h" #include "GameFramework/PlayerController.h" #include "HYPlayerCharacController.generated.h" @@ -44,18 +43,6 @@ public: UPROPERTY(EditAnywhere, BlueprintReadWrite) int32 InventoryWeightLimit; - /** MappingContext */ - UPROPERTY(EditAnywhere, Category = Input, meta = (AllowPrivateAccess = "true")) - class UInputMappingContext* InputMapping; - - /** Toggle inventory GUI Input Action */ - UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true")) - class UInputAction* ToggleInventoryAction; - - /** Interact Input Action */ - UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true")) - class UInputAction* InteractAction; - #pragma endregion diff --git a/hwanyoung2/Source/hwanyoung2/hwanyoung2Character.h b/hwanyoung2/Source/hwanyoung2/hwanyoung2Character.h index 96bdc9a1..9457aa56 100644 --- a/hwanyoung2/Source/hwanyoung2/hwanyoung2Character.h +++ b/hwanyoung2/Source/hwanyoung2/hwanyoung2Character.h @@ -54,7 +54,6 @@ private: void Initialize(); public: - Ahwanyoung2Character(); @@ -69,6 +68,7 @@ public: UFUNCTION(BlueprintCallable, Category = "HY_Character|Camera") FVector GetStartingCameraBoomLocation(); + /** Returns CameraBoom subobject **/ class USpringArmComponent* GetCameraBoom() const { return CameraBoom; } /** Returns FollowCamera subobject **/