Пример #1
0
 // 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);
     }
 }
Пример #2
0
 void Update()
 {
     TriToolHub.Rotate(gameObject, TriToolHub.XYZ.Z, speed, true, Space.Self);
 }