private void OnEditor() { if (Input.GetMouseButton(0)) { float y = Input.GetAxis("Mouse Y") * rotSpeed * Time.deltaTime; torso.Rotate(-Vector3.forward * y); force.ApplyChage(-Input.GetAxis("Mouse X") * forceMul); force.SetValue(Mathf.Clamp(force.value, 0.0f, 30.0f)); angelTxt.text = "" + (int)torso.transform.localEulerAngles.z + "^"; } if (Input.GetMouseButtonUp(0)) { Fire(); } }