Input problems.

Hello, i want to do something when some key is pressed, for that i need to check the user inputs with Input.GetDown or Input.GetUp function, but inside of OnSyncedInput function this not work because the framerate is fixed. so.. somebody have one workaround for that? i do not want handle this with cooldowns..

Comments

  • Hi @Fortunacio,

    There is an example at "SimpleControl.cs" that you can check when the player press "space". Basically you need to use an auxiliar bool variable to check the previous button state ( pressed or not pressed ). Any doubts please reply here.