Input.GetButtonstatic function GetButton (buttonName : String) : booleanDescriptionReturns true while the virtual button identified by buttonName is held down. Think auto fire - this will return true as long as the button is held down.
Use this only when implementing action like events IE: shooting a weapon.
JavaScript
// Instantiates a projectile every 0.5 seconds, using UnityEngine; import UnityEngine |
