Refactorisation

This commit is contained in:
2023-10-23 11:56:24 +02:00
parent 18237e3a0b
commit 600545e0f1
31 changed files with 102 additions and 102 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ public class PlayerMovements : MonoBehaviour
private Animator _animator;
private PlayerManager _pm;
public bool lookOnRight = true;
public bool LookOnRight = true;
private void Start()
{
@@ -28,11 +28,11 @@ public class PlayerMovements : MonoBehaviour
if (moveH < 0)
{
_sr.flipX = true;
lookOnRight = false;
LookOnRight = false;
} else if (moveH > 0)
{
_sr.flipX = false;
lookOnRight = true;
LookOnRight = true;
}
/** --- update animator -------------------------------------------*/