private void Update() { Vector3 controllerDir = new Vector3(Input.GetAxis("RightVertical"), 0, Input.GetAxis("RightHorizontal")); if (Input.GetButton("Fire") || controllerDir.magnitude >= .8f) { basicController.shoot(); } }
private void Update() { Vector3 controllerDir = new Vector3(Input.GetAxis("RightVertical"), 0, Input.GetAxis("RightHorizontal")); if (Input.GetButton("Fire") || controllerDir.magnitude >= .8f) { basicController.shoot(); } }