This commit is contained in:
2023-08-08 20:58:50 +03:00
parent f0df2bb40e
commit c64bcbeeab
5 changed files with 443 additions and 103 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ public class EnemyAI : Character
{
vertical = VerticalMove(verticalDistance);
}
else if (verticalDistance < 0.1f && isAllowVertical && isCanGoDown)
else if (verticalDistance < 0f && isAllowVertical && isCanGoDown)
{
vertical = VerticalMove(verticalDistance);
}