Как повторить функцию, пока кнопка нажата (новая система ввода Unity) ⇐ C#
Как повторить функцию, пока кнопка нажата (новая система ввода Unity)
Trying to repeat the function function OnAttack() continuously while a button is being held down.
Basically I'm looking for an equivalent to Update() { GetKeyDown() {//code }} But with the input system.
Edit: using a joystick, cant tell what button is being pressed.
Источник: https://stackoverflow.com/questions/598 ... put-system
Trying to repeat the function function OnAttack() continuously while a button is being held down.
Basically I'm looking for an equivalent to Update() { GetKeyDown() {//code }} But with the input system.
Edit: using a joystick, cant tell what button is being pressed.
Источник: https://stackoverflow.com/questions/598 ... put-system
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение