private void Update() { CurrentController.UpdateInput(); Aim.transform.position = new Vector3(CurrentController.AimPos.x, CurrentController.AimPos.y, Aim.transform.position.z); if (InputType != InputType.TouchScreen && Input.touchCount > 0) { SetController(InputType.TouchScreen); } if (InputType != InputType.GamePad && Input.GetKeyDown(KeySelectGamePad)) { SetController(InputType.GamePad); } if (InputType != InputType.KeyboardAndMouse && Input.GetKeyDown(KeySelectKeyBoard)) { SetController(InputType.KeyboardAndMouse); } }