- Home /
How can I check if the button is being held with the Starter Assets (Third Person Controller) ?
I'm currently using the Starter Assets, more specif the Third Person Controller. I have an interaction button, and right now if I press it it will do something for me. Now, I need to check if this button is being held down. How can I achieve this?
public void InteractInput(bool newInteractState)
{
// Validate someting here perhaps???
interact = newInteractState;
}
public void OnInteract(InputValue value)
{
InteractInput(value.isPressed);
}
Comment