- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
leandropim · Oct 09, 2012 at 11:10 PM ·
inputmanager
Using InputManager problems?
Hi, i'm replacing all my functions to use InputManager
if(Input.GetKey("p")) // this works well
pause();
if(Input.GetButton("PauseButton")) // this call pause() function several times;
pause();
I set (Gravity, Dead, Sensitivity) in InputManager Menu, But no success
Comment
Best Answer
Answer by Eric5h5 · Oct 09, 2012 at 11:13 PM
Use GetButtonDown. GetButton (and GetKey) return true every frame the key is held down.