Ejemplo n.º 1
0
    private void Start()
    {
        //Uncomment this for the intended gameplay
        //Game starts with camera focusing on P1
        //while P2 is moving
        //P1.SetMoveState(false);
        //P2.SetMoveState(true);
        //cameraTarget.SetTarget(P1.transform);

        //Code below is just for testing purposes
        P1.SetMoveState(true);
        P2.SetMoveState(false);
        cameraTarget.SetTarget(P1.transform);
    }
Ejemplo n.º 2
0
        public void SetControllerTarget(int index)
        {
            switch (index)
            {
            case 0:
                _controller.SetTarget(cameraRig);
                break;

            case 1:
                _controller.SetTarget(leftController);
                break;

            case 2:
                _controller.SetTarget(rightController);
                break;
            }
        }