From 48ce2b43c1876d34543306d3e70b0f136f3dbe20 Mon Sep 17 00:00:00 2001 From: thedoctor2001 <52832161+thedoctor2001@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:54:29 +0700 Subject: [PATCH] Update the player's speed --- URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity | 4 ++-- URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs | 2 +- URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity b/URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity index 6ee91835..0c23348b 100644 --- a/URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity +++ b/URP Quang Binh/Assets/Scenes/Main Scene - Flood.unity @@ -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 diff --git a/URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs b/URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs index b9703ffb..e510cb0c 100644 --- a/URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs +++ b/URP Quang Binh/Assets/Scripts/MovePlayer/MoveHorizontal.cs @@ -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; diff --git a/URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs b/URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs index d6de064c..8cbd5a16 100644 --- a/URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs +++ b/URP Quang Binh/Assets/Scripts/MovePlayer/MoveVertical.cs @@ -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;