From 4c52fc32db2003c115c648c5198f8c9a606dac41 Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Mon, 30 Sep 2019 21:29:43 -0400 Subject: [PATCH] Initial Push. Implemented clean basic walk button --- Assets/Scripts/PlayerController.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 7b48c1c..060b21a 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -16,13 +16,11 @@ public class PlayerController : MonoBehaviour public float gravity = 5.0f; private bool extraJump = true; - private float tempSpeed; private Vector3 moveDirection; void Start() { characterController = GetComponent(); - tempSpeed = speed; } void Update() @@ -48,10 +46,8 @@ public class PlayerController : MonoBehaviour if(Input.GetKey(KeyCode.LeftShift)) { moveDirection = (moveDirection.normalized * speed/2); - tempSpeed = speed/2; } else { moveDirection = moveDirection.normalized * speed; - tempSpeed = speed; } if (Input.GetButtonDown("Jump"))