Skip to content
Snippets Groups Projects
Commit 7bb2c0b9 authored by Akmal Mahardika Nurwahyu Pratama's avatar Akmal Mahardika Nurwahyu Pratama
Browse files

chore: remove unnecessary variabel

parent 84eded05
Branches
Tags
2 merge requests!35feat: fix Game Data,!32BUG FIX: Shop, statistic
...@@ -11,7 +11,6 @@ namespace CompleteProject ...@@ -11,7 +11,6 @@ namespace CompleteProject
public float speedUpTime = 0f; public float speedUpTime = 0f;
public Text speedUpTimeText; public Text speedUpTimeText;
public Text speedUpText; 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 float distanceTravelled = 0f; // Variable to store the distance travelled by the player
...@@ -45,13 +44,7 @@ namespace CompleteProject ...@@ -45,13 +44,7 @@ namespace CompleteProject
// Move the player around the scene. // Move the player around the scene.
Move(h, v); 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. // Turn the player to face the mouse cursor.
Turning(); Turning();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment