Skip to content

Commit 6f83b0b

Browse files
committed
Fixed indentation
1 parent 0e477f8 commit 6f83b0b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Assets/PC2D/Scripts/PlatformerAnimation2D.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ void Update()
100100
{
101101
valueCheck = _motor.velocity.x;
102102
}
103-
104-
if (Mathf.Abs(valueCheck) >= 0.1f)
105-
{
106-
Vector3 newScale = visualChild.transform.localScale;
107-
newScale.x = Mathf.Abs(newScale.x) * ((valueCheck > 0) ? 1.0f : -1.0f);
108-
visualChild.transform.localScale = newScale;
109-
}
103+
104+
if (Mathf.Abs(valueCheck) >= 0.1f)
105+
{
106+
Vector3 newScale = visualChild.transform.localScale;
107+
newScale.x = Mathf.Abs(newScale.x) * ((valueCheck > 0) ? 1.0f : -1.0f);
108+
visualChild.transform.localScale = newScale;
109+
}
110110
}
111111

112112
private void SetCurrentFacingLeft()

0 commit comments

Comments
 (0)