public void ShootBullet() { //Only allow shooting when there are ammo left. if (bulletsLeft > 0) { //Decrease ammo count. --bulletsLeft; //Cursor embellishment cursor.FlashFiringRing(); //Ui display of ammo remaining UpdateBulletDisplay(); //Spawn particle effect SpawnSpark(); //Check for target hit CheckIfHitsTarget(); } }