diff --git a/RoomEscape/Source/RoomEscape/Grabber.cpp b/RoomEscape/Source/RoomEscape/Grabber.cpp index 2fc1e74..cf1f051 100644 --- a/RoomEscape/Source/RoomEscape/Grabber.cpp +++ b/RoomEscape/Source/RoomEscape/Grabber.cpp @@ -36,7 +36,9 @@ void UGrabber::BeginPlay() InputComponent = GetOwner()->FindComponentByClass(); if (InputComponent) { UE_LOG(LogTemp, Warning, TEXT("%s has a InputHandle"), *(GetOwner()->GetName())); - InputComponent->BindAction("Grab", IE_Pressed, this, &UGrabber::Grab) + + InputComponent->BindAction("Grab", IE_Pressed, this, &UGrabber::Grab); + } else { UE_LOG(LogTemp, Error, TEXT("%s has no InputHandle"), *(GetOwner()->GetName())); } @@ -45,7 +47,7 @@ void UGrabber::BeginPlay() // Raycast and grab what is in reach void UGrabber::Grab(){ - + UE_LOG(LogTemp, Warning, TEXT("GRABBING!")); }