From 297fe4717cc423e557f03957b6cc21d8ff267afa Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 20 Feb 2018 23:28:58 -0500 Subject: [PATCH] grab log --- RoomEscape/Source/RoomEscape/Grabber.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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!")); }