// Update is called once per frame void FixedUpdate() { //horizontalInput = Input.GetAxis("Horizontal"); if (gControl.currentGameState == GameController.GameState.Playing) { TriToolHub.Rotate(gameObject, TriToolHub.XYZ.Y, 1 * Time.deltaTime * rotationSpeed, true, Space.World); } }
void Update() { TriToolHub.Rotate(gameObject, TriToolHub.XYZ.Z, speed, true, Space.Self); }