Answer by KillMobil
Input.GetButtonDown ("Fire1") returns True or False and therefore you have to constantly check it with an Update function. There is a great example in Unity documentation that probably does what you...
View ArticleAnswer by BroVodo
bool canShoot = true; public float coolDown = 5.0f; void Update() { if( Input.GetButtonDown ("Fire1") && canShoot ) { Shoot(); canShoot = false; Invoke( "CooledDown", coolDown ); } } void...
View Article
More Pages to Explore .....