Как повторить функцию, пока кнопка нажата (новая система ввода Unity)C#

Место общения программистов C#
Anonymous
Как повторить функцию, пока кнопка нажата (новая система ввода Unity)

Сообщение Anonymous »


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

Вернуться в «C#»