change: Removed dependencies and references to OLD_StateController
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user