fixed bumper and boulder

fixed wallrun on regular player prefab
This commit is contained in:
Melbyj1125
2022-01-28 13:11:13 -06:00
parent 4042eb1c67
commit 6bab1292f6
6 changed files with 20 additions and 10 deletions

View File

@@ -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{