Skip to content

Commit

Permalink
Update the player's speed
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoctor2001 committed Nov 13, 2024
1 parent 518755f commit 48ce2b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity
Original file line number Diff line number Diff line change
Expand Up @@ -273273,11 +273273,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1951783052684886104, guid: 2e3ce66bb2aa64b2db5572814f6c946c, type: 3}
propertyPath: Speed
value: 50
value: 200
objectReference: {fileID: 0}
- target: {fileID: 2610731287024547879, guid: 2e3ce66bb2aa64b2db5572814f6c946c, type: 3}
propertyPath: speed
value: 50
value: 200
objectReference: {fileID: 0}
- target: {fileID: 2610731287024547879, guid: 2e3ce66bb2aa64b2db5572814f6c946c, type: 3}
propertyPath: speedRotation
Expand Down
2 changes: 1 addition & 1 deletion URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class MoveHorizontal : InputData
{
public bool RightHand = true;

[SerializeField] private float speed = 2.0f;
[SerializeField] private float speed = 200.0f;
[SerializeField] private float speedRotation = 10.0f;
[SerializeField] private bool Strafe = false;
public InputHelpers.Axis2D stick = InputHelpers.Axis2D.PrimaryAxis2D;
Expand Down
2 changes: 1 addition & 1 deletion URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class MoveVertical : InputData
{

public float Speed = 2.0f;
public float Speed = 200.0f;
public bool RightHand = false;

public float minY = 0.0f;
Expand Down

0 comments on commit 48ce2b4

Please sign in to comment.