void Update()
{
//player movement
vInput = Input.GetAxis("Vertical") * moveSpeed;
hInput = Input.GetAxis("Horizontal") * rotateSpeed;
if(Input.GetKeyDown(KeyCode.Space)){
isJumping = true;
}
if(Input.GetMouseButtonDown(1)){
isShooting= true;
}
}