void SetScale() { if (trackpadClick.GetStateUp(SteamVR_Input_Sources.RightHand)) { scaleManager.ResetScale(); } float x = joystickPos.GetAxis(SteamVR_Input_Sources.RightHand).x; if (Mathf.Abs(x) >= joystickThreshold) { scaleManager.MoveScale(x * scaleSensitivity); } }
private void Moverdy() { moveComp = false; if (PlayerTurn == 1) { player1Camera.SetActive(false); } else if (PlayerTurn == 2) { player2Camera.SetActive(false); } RayController.HittedPlayer.GetComponentInChildren <IMove>().MoveRdy(RayController.HittedSquare); scaleManager.MoveScale(player1, player2); GameState = GameState.move; }