mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-04-03 17:39:03 +00:00
Added prototype materials
I'm going to run out of storage aren't I
This commit is contained in:
@@ -5,6 +5,7 @@ public class PlayerMovement : MonoBehaviour
|
||||
[Header("General Settings")]
|
||||
[SerializeField] float m_MoveSpeed;
|
||||
[SerializeField] float m_GroundDrag;
|
||||
[SerializeField] float m_AirDrag;
|
||||
|
||||
[Header("Ground Check")]
|
||||
[SerializeField] float m_PlayerHeight;
|
||||
@@ -58,10 +59,10 @@ public class PlayerMovement : MonoBehaviour
|
||||
m_Body.drag = m_GroundDrag;
|
||||
}
|
||||
|
||||
// Else there is no drag on the player
|
||||
// Else it applies the air drag to the player
|
||||
else
|
||||
{
|
||||
m_Body.drag = 0;
|
||||
m_Body.drag = m_AirDrag;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user