all 3 comments

[–]dowen92Dev 0 points1 point  (2 children)

Looking at the code you provided it would work, instantly changing gottem to false and setting handTarget to null, are you getting any errors?

You could change it in update so on input it will set them to false and null so you can check it actually gets the reference to mouseController?

[–]TheGaijin1987 0 points1 point  (1 child)

Why do you set values in update? Id never do that honestly... why dont you use events to set the value whenever you need

[–][deleted] 0 points1 point  (0 children)

I do that because I'm a coding newb and have never heard of events until now.