From 6761201c6321b50cd8d7517f8e502162b925ca0a Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Sun, 10 Dec 2023 01:37:08 +0000 Subject: [PATCH] Added class for animation strings --- Assets/Scripts/PlayerController.cs | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 8004533..3381b36 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -18,7 +18,7 @@ private set { _isMoving = value; - animator.SetBool("IsMoving", value); + animator.SetBool(AnimationStrings.Player.IsMoving, value); } } @@ -30,7 +30,7 @@ private set { _isFlying = value; - animator.SetBool("IsFlying", value); + animator.SetBool(AnimationStrings.Player.IsFlying, value); rotorSprite.enabled = value; } } @@ -75,8 +75,6 @@ private void FixedUpdate() { - - Debug.Log(moveInput.x); if (moveInput.y == 0) { if (rb.velocity.y <= maxFallSpeed) -- Gitblit v1.9.3