private void FixedUpdate() { // Call the Move function of the ball controller ball.Move(move, jump); jump = false; }
private void FixedUpdate() { // Call the Move function of the ball controller if (base.photonView.IsMine) { ball.Move(move, jump); jump = false; } }
private void FixedUpdate() { if (!isLocalPlayer) { return; } // Call the Move function of the ball controller ball.Move(move, jump); jump = false; }
private void FixedUpdate() { // Call the Move function of the ball controller if (move.magnitude > 0f) { ball.Move(move); } if (jump) { ball.Jump(); jump = false; } }
private void FixedUpdate() { // Call the Move function of the ball controller if (canClimb) { ball.Climb(move); } else { ball.Move(move, jump); } jump = false; }
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 }
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); } }
private void FixedUpdate() { ball.Move(move, jump); jump = false; }
private void FixedUpdate() { // Call the Move function of the ball controller ball.Move(move, brake); brake = false; }