CMHDev Posted December 5, 2018 Share Posted December 5, 2018 (edited) Am facut update la functie si am postat pe global ... Acum functioneaza ca si pe java script... Edited December 13, 2018 by CMHDev 1 1 Link to comment Share on other sites More sharing options...
CMHDev Posted December 13, 2018 Author Share Posted December 13, 2018 Update Link to comment Share on other sites More sharing options...
Kiwk Posted September 27, 2020 Share Posted September 27, 2020 am modificat eu putin sa execute doar cand apesi pe buton, daca vrei sa mai execute iar trebuie sa ridici butonu si sa-l apesi. Bun codu, folositor . Bravo. if (Input.IsDown(key) && _keyStatus == false) { action.Invoke(); _keyStatus = true; } else if (Input.IsUp(key)) { _keyStatus = false; } Probabil ai facut intentionat cu delayul , dar in cazul meu aveam nevoie sa bindez tasta 'K' pentru telefon si il tot deschidea inchidea daca tineam apasat. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now