private void Shoot() { if (form == Form.PERSON) { Vector3 mouseWorldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); Vector3 bowRotationVector = mouseWorldPosition - transform.position; bowRotationVector.z = 0; bowRotationVector.Normalize(); ObjectController.CreateArrow(transform.position + bowRotationVector, bowRotationVector, 50); SoundController.PlayArrowShoot(); } }