We forgot time.deltatime...
This commit is contained in:
parent
a86576068f
commit
cb4ffab588
|
@ -363,7 +363,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 3dbdb849a2f5df14d9e109a7776c5ac0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
moveSpeed: 70
|
||||
moveSpeed: 5000
|
||||
whipSmashSpeed: 2
|
||||
whipSmashDamageMult: 2
|
||||
whipMoveSpeed: 25
|
||||
|
@ -473,7 +473,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
GlobalObjectIdHash: 4009941625
|
||||
GlobalObjectIdHash: 2899378164
|
||||
InScenePlacedSourceGlobalObjectIdHash: 0
|
||||
AlwaysReplicateAsRoot: 0
|
||||
SynchronizeTransform: 1
|
||||
|
|
|
@ -53,7 +53,7 @@ public class PlayerMovement : MonoBehaviour
|
|||
|
||||
private void PlayerInput_OnNewMoveData(MoveData moveData)
|
||||
{
|
||||
rb.AddForce(moveData.Movement * moveSpeed);
|
||||
rb.AddForce(moveData.Movement * moveSpeed * Time.deltaTime);
|
||||
}
|
||||
|
||||
void OnCollisionStay2D(Collision2D collision)
|
||||
|
|
Loading…
Reference in New Issue