From f7ebea3a8a8643196f60d6eb1ca3ff1e6df3fdb4 Mon Sep 17 00:00:00 2001
From: Kenneth Ezekiel <88850771+KenEzekiel@users.noreply.github.com>
Date: Tue, 23 Apr 2024 21:48:07 +0700
Subject: [PATCH] fix: error on stats

---
 Assets/_Scripts/Core/Player/Player.cs                   | 2 +-
 Assets/_Scripts/Core/Player/PlayerMovementController.cs | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Assets/_Scripts/Core/Player/Player.cs b/Assets/_Scripts/Core/Player/Player.cs
index 00b498d7..99570778 100644
--- a/Assets/_Scripts/Core/Player/Player.cs
+++ b/Assets/_Scripts/Core/Player/Player.cs
@@ -27,9 +27,9 @@ public class Player : PlayerEntity
         Health *= GameConfig.DIFFICULTY_MODIFIERS[GameSaveData.instance.difficulty].playerHealthMultiplier;
         stateController = new PlayerStateController(this);
         inputController = new PlayerInputController(this);
+        stats = new PlayerStats(this);
         movementController = new PlayerMovementController(this);
         animationController = new PlayerAnimationController(this);
-        stats = new PlayerStats(this);
 
         
         WeaponList.AddRange(GetComponentsInChildren<WeaponObject>());
diff --git a/Assets/_Scripts/Core/Player/PlayerMovementController.cs b/Assets/_Scripts/Core/Player/PlayerMovementController.cs
index f5fee70d..26543bf2 100644
--- a/Assets/_Scripts/Core/Player/PlayerMovementController.cs
+++ b/Assets/_Scripts/Core/Player/PlayerMovementController.cs
@@ -41,8 +41,6 @@ public class PlayerMovementController
         Vector3 dampVelocity = Vector3.zero;
 
         Vector3 movementVector = inputX * axisX.normalized + inputZ * axisZ.normalized;
-
-        Debug.Log(player.stats);
         Vector3 modifierVector = movementVector.normalized * player.stats.MaxSpeed;
         velocity.x = modifierVector.x;
         velocity.z = modifierVector.z;
-- 
GitLab