Example #1
0
 private void FixedUpdate()
 {
     leftEngine.AddRelativeForce(leftForce);
     rightEngine.AddRelativeForce(rightForce);
     uiGame.SetValueLeftEngine(Mathf.Abs(leftForce.y));
     uiGame.SetValueRightEngine(Mathf.Abs(rightForce.y));
     //uiGame.RotateDirectionPointer(-transform.rotation.eulerAngles.x);
     uiGame.DirectionUfo(rb.velocity);
 }