예제 #1
0
        private void FixedUpdate()
        {
            // Call the Move function of the ball controller

            ball.Move(move, jump);
            jump = false;
        }
예제 #2
0
 private void FixedUpdate()
 {
     // Call the Move function of the ball controller
     if (base.photonView.IsMine)
     {
         ball.Move(move, jump);
         jump = false;
     }
 }
예제 #3
0
 private void FixedUpdate()
 {
     if (!isLocalPlayer)
     {
         return;
     }
     // Call the Move function of the ball controller
     ball.Move(move, jump);
     jump = false;
 }
예제 #4
0
 private void FixedUpdate()
 {
     // Call the Move function of the ball controller
     if (move.magnitude > 0f)
     {
         ball.Move(move);
     }
     if (jump)
     {
         ball.Jump();
         jump = false;
     }
 }
예제 #5
0
        private void FixedUpdate()
        {
            // Call the Move function of the ball controller

            if (canClimb)
            {
                ball.Climb(move);
            }
            else
            {
                ball.Move(move, jump);
            }
            jump = false;
        }
예제 #6
0
        private void FixedUpdate()
        {
            switch (state)
            {
            case State.OnFloor:
                ball.Move(move, jump);
                jump = false;
                break;

            case State.OnScalable:
                ball.Scalable(move);
                break;
            }
            // Call the Move function of the ball controller
        }
예제 #7
0
        private void Update()
        {
            if (Cardboard.SDK.Triggered)
            {
                float h = 2;

                if (cam != null)
                {
                    // calculate camera relative direction to move:
                    camForward = Vector3.Scale(cam.forward, new Vector3(1, 0, 1)).normalized;
                    move       = (camForward + h * cam.forward).normalized;
                }
                else
                {
                    // we use world-relative directions in the case of no main camera
                    move = (Vector3.forward + h * Vector3.forward).normalized;
                }

                ball.Move(move, false);
            }
        }
예제 #8
0
 private void FixedUpdate()
 {
     ball.Move(move, jump);
     jump = false;
 }
예제 #9
0
 private void FixedUpdate()
 {
     // Call the Move function of the ball controller
     ball.Move(move, brake);
     brake = false;
 }