void Fire() { if (Input.GetButton("Jump")) { if (state == GameState.BEFORE_FIRE) { bullet.transform.parent = null; cw.SetCameraFollow(bulletCameraPos); state = GameState.BEFORE_FLYING; bullet.GetComponent <Rigidbody>().velocity = bullet.transform.forward * bulletSpeed; au.Play(); } } }