Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    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;
    }