Compare commits

..

No commits in common. "18abbad56df036c2c3d9c25f0a9924c0494e847d" and "68d9fafdf6628dfcba3beff222ff603bb28ebfce" have entirely different histories.

43 changed files with 81 additions and 81 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,7 @@
#include "HYPlayerCharacController.h"
#include "HYGameStateBase.h"
#include "hwanyoung2Character.h"
#include "EnhancedInputComponent.h"
AHYPlayerCharacController::AHYPlayerCharacController()
{
@ -47,9 +48,19 @@ void AHYPlayerCharacController::Interact()
void AHYPlayerCharacController::SetupInputComponent()
{
Super::SetupInputComponent();
if (UEnhancedInputComponent* EnhancedInputComponent = CastChecked<UEnhancedInputComponent>(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);
}

View File

@ -4,6 +4,7 @@
#include "HYInteractableActor.h"
#include "InventoryItem.h"
#include "InputAction.h"
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "HYPlayerCharacController.generated.h"
@ -43,6 +44,18 @@ 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

View File

@ -54,6 +54,7 @@ private:
void Initialize();
public:
Ahwanyoung2Character();
@ -68,7 +69,6 @@ public:
UFUNCTION(BlueprintCallable, Category = "HY_Character|Camera")
FVector GetStartingCameraBoomLocation();
/** Returns CameraBoom subobject **/
class USpringArmComponent* GetCameraBoom() const { return CameraBoom; }
/** Returns FollowCamera subobject **/