private void GetInput() { position = view.GetPosition(); rotation = view.GetRotation(); model.Position = position; model.Rotation = rotation; float x = Input.GetAxis("Horizontal"); float y = Input.GetAxis("Vertical"); model.CalculatePosition(x, y); if (Input.GetButton("Fire1") && Time.time > nextFire) { nextFire = Time.time + fireRate; model.Fire(shot, shotSpawn); } }