mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
fixed bumper and boulder
fixed wallrun on regular player prefab
This commit is contained in:
@@ -5,7 +5,7 @@ using UnityEngine.Assertions;
|
||||
|
||||
public class PlayerStats : MonoBehaviour
|
||||
{
|
||||
//Maximum possible player speed
|
||||
//Soft cap max speed a player can achieve they can achieve this speed by running
|
||||
[SerializeField] private float maxVel = 30.0f;
|
||||
public float MaxVel{
|
||||
get{ return maxVel; }
|
||||
@@ -26,6 +26,13 @@ public class PlayerStats : MonoBehaviour
|
||||
set{ curVel = value; }
|
||||
}
|
||||
|
||||
//The absolute max speed a player can achieve through boosts or momentum increases will disipate down to soft cap
|
||||
[SerializeField] private float hardCapMaxVel;
|
||||
public float HardCapMaxVel{
|
||||
get{ return hardCapMaxVel; }
|
||||
set{ hardCapMaxVel = value; }
|
||||
}
|
||||
|
||||
//Player Acceleration
|
||||
[SerializeField] private float acc = 0.1f;
|
||||
public float Acc{
|
||||
|
||||
Reference in New Issue
Block a user