mirror of
https://github.com/PashaBibko/The-Mobius-Line.git
synced 2026-12-02 23:37:39 +00:00
Added prototype materials
I'm going to run out of storage aren't I
This commit is contained in:
1 parent
72285f2678
commit
8dd1bf8772
30 files changed
+9122
-9
No files matched your search
@@ -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