added input action reference for walking, binded IA_Walk to Move() function
This commit is contained in:
parent
06bb51a198
commit
68d9fafdf6
@ -117,6 +117,9 @@ void Ahwanyoung2Character::SetupPlayerInputComponent(class UInputComponent* Play
|
||||
|
||||
//Moving
|
||||
EnhancedInputComponent->BindAction(MoveAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Move);
|
||||
|
||||
//Walking
|
||||
EnhancedInputComponent->BindAction(WalkAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Move);
|
||||
|
||||
//Looking
|
||||
EnhancedInputComponent->BindAction(LookAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Look);
|
||||
|
@ -43,6 +43,10 @@ class Ahwanyoung2Character : public ACharacter
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
|
||||
class UInputAction* LookAction;
|
||||
|
||||
/** Walk Input Action */
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
|
||||
class UInputAction* WalkAction;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user