MOD: Player Movement
ADD: Player Prefab ADD: Ground Prefab ADD: Cinemachine
This commit is contained in:
@@ -16,6 +16,7 @@ public class PlayerMover : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
rb = GetComponent<Rigidbody2D>();
|
||||
rb.gravityScale = 0;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
@@ -43,6 +44,8 @@ public class PlayerMover : MonoBehaviour
|
||||
moveDirection.Normalize();
|
||||
}
|
||||
|
||||
rb.velocity = moveDirection * speed;
|
||||
rb.velocity = moveDirection * speed * Time.deltaTime * 1000;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user