From 7bb2c0b9275f9ec3f4fe2edad1044a43a5a5093e Mon Sep 17 00:00:00 2001
From: akmaldika <13521070@mahasiswa.itb.ac.id>
Date: Sat, 11 May 2024 12:11:37 +0700
Subject: [PATCH] chore: remove unnecessary variabel

---
 Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs b/Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs
index 3abb2775..77a8f015 100644
--- a/Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs
+++ b/Assets/_CompletedAssets/Scripts/Player/PlayerMovement.cs
@@ -11,7 +11,6 @@ namespace CompleteProject
         public float speedUpTime = 0f;
         public Text speedUpTimeText;
         public Text speedUpText;
-        int movementCount = 0; // Variable to count every movement the player does
         float distanceTravelled = 0f; // Variable to store the distance travelled by the player
 
 
@@ -45,13 +44,7 @@ namespace CompleteProject
             // Move the player around the scene.
             Move(h, v);
 
-            // Increment the movement count
-            if (h != 0 || v != 0)
-            {
-                movementCount++;
-                Debug.Log("Movement Count: " + movementCount);
-            }
-
+           
             // Turn the player to face the mouse cursor.
             Turning();
 
-- 
GitLab