diff --git a/Assets/_Scripts/Core/Player/Player.cs b/Assets/_Scripts/Core/Player/Player.cs index 00b498d721794f486f41e76f3647ea5dbe55db87..995707781068bd9a6098ca6cd46a2a490b5cbca8 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 f5fee70dd575036bdcb2bf47f8db865efb1487f0..26543bf28b5b678436d5364469b1bb55fbd6a639 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;