Add an Action to a New Script
How to add a Player Action to a New Unity Script
Last updated
Was this helpful?
How to add a Player Action to a New Unity Script
Last updated
Was this helpful?
Was this helpful?
if (input.checkInputButton ("newAction", inputManager.buttonType.getKeyDown)){
//KeyDown, key pressed, call the need function
}
if (input.checkInputButton ("newAction", inputManager.buttonType.getKey)){
//Key, key held call the need function
}
if (input.checkInputButton ("newAction", inputManager.buttonType.getKeyUp)){
//KeyUp, key released, call the need function
}