spacepaste

  1.  
  2. if (controller.isGrounded)
  3. {
  4. moveDirection = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical"));
  5. moveDirection = transform.TransformDirection(moveDirection);
  6. moveDirection *= MovementSpeed;
  7. if (Input.GetButton("Jump")) m_RigidBody.AddForce(new Vector3(-30.0f, 30.0f, 0.0f), ForceMode.Impulse);
  8. MovementSpeed = MovementSpeedDefault / TM.Matrix_Time;
  9. }
  10.