Compare commits

..

No commits in common. "264db39cc1652a69cd2c834d0fd6ef8455ff7f2c" and "1b515981f53f5ede97879e5a83d46ed441db59b3" have entirely different histories.

25 changed files with 40 additions and 47 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,7 +4,6 @@
#include "HYPlayerCharacController.h" #include "HYPlayerCharacController.h"
#include "HYGameStateBase.h" #include "HYGameStateBase.h"
#include "hwanyoung2Character.h" #include "hwanyoung2Character.h"
#include "EnhancedInputComponent.h"
AHYPlayerCharacController::AHYPlayerCharacController() AHYPlayerCharacController::AHYPlayerCharacController()
{ {
@ -49,15 +48,9 @@ void AHYPlayerCharacController::SetupInputComponent()
{ {
Super::SetupInputComponent(); Super::SetupInputComponent();
if (UEnhancedInputComponent* EnhancedInputComponent = CastChecked<UEnhancedInputComponent>(InputComponent)) { InputComponent->BindAction(
EnhancedInputComponent->BindAction( "Interact", IE_Pressed, this,
InteractAction, ETriggerEvent::Triggered, &AHYPlayerCharacController::Interact);
this, &AHYPlayerCharacController::Interact);
EnhancedInputComponent->BindAction(
ToggleInventoryAction, ETriggerEvent::Triggered,
this, &AHYPlayerCharacController::ReloadInventory);
}
} }
void AHYPlayerCharacController::OnPossess(APawn* InPawn) void AHYPlayerCharacController::OnPossess(APawn* InPawn)

View File

@ -4,7 +4,7 @@
#include "HYInteractableActor.h" #include "HYInteractableActor.h"
#include "InventoryItem.h" #include "InventoryItem.h"
#include "InputAction.h"
#include "CoreMinimal.h" #include "CoreMinimal.h"
#include "GameFramework/PlayerController.h" #include "GameFramework/PlayerController.h"
#include "HYPlayerCharacController.generated.h" #include "HYPlayerCharacController.generated.h"