change: Removed dependencies and references to OLD_StateController

This commit is contained in:
Nicholas Novak
2023-05-04 00:51:15 -07:00
parent ee158dd9a1
commit 212695df5d
5 changed files with 32 additions and 109 deletions

View File

@@ -102,13 +102,13 @@ public class PlayerBehavior : MonoBehaviour
}
if (!playerController.IsGrounded() && (currentDashTime < maxDashTime) && isDash)
{
if(forward == 1)
{
moveDirection = new Vector3(1f,-1f,0f) * dashDistance;
if (forward == 1)
{
moveDirection = new Vector3(1f, -1f, 0f) * dashDistance;
}
else
{
moveDirection = new Vector3(-1f,-1f,0f) * dashDistance;
moveDirection = new Vector3(-1f, -1f, 0f) * dashDistance;
}
transform.position = transform.position + moveDirection;
currentDashTime += dashStopSpeed;