mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-29 20:22:08 +01:00
bug fixes: PlayerMovement
This commit is contained in:
@@ -10,7 +10,7 @@ public class PlayerMovement : MonoBehaviour
|
||||
[SerializeField] private float speed = 12f;
|
||||
[SerializeField] private float airSpeed = 0.6f;
|
||||
[SerializeField] private float sprintSpeed = 1.8f;
|
||||
[SerializeField] private float sprintAirSpeed = 1.2f;
|
||||
[SerializeField] private float sprintAirSpeed = 1.4f;
|
||||
[SerializeField] private float gravity = -9.81f;
|
||||
[SerializeField] private float jumpHeight = 3f;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class PlayerMovement : MonoBehaviour
|
||||
|
||||
private Vector3 velocity;
|
||||
private bool isGrounded;
|
||||
private bool isSprinting;
|
||||
private bool isSprinting = false;
|
||||
|
||||
void Start()
|
||||
{
|
||||
@@ -64,6 +64,7 @@ public class PlayerMovement : MonoBehaviour
|
||||
//SNEAK
|
||||
if (Input.GetButton("Sneak"))
|
||||
{
|
||||
print("Sneak");
|
||||
//Kommt mit character model und animations
|
||||
}
|
||||
isSprinting = false;
|
||||
|
||||
Reference in New Issue
Block a user