Skip to content

Commit

Permalink
Change input crouch from c to ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeBrt committed Dec 12, 2022
1 parent a1d7cea commit 8894fc7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/Player/PlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ void DisplayPauseUi()

void crouch()
{
if (Input.GetKeyDown(KeyCode.C))
if (Input.GetKeyDown(KeyCode.LeftControl))
{
normalPlayerHeight = playerController.height;
playerController.height = crouchPlayerHeight;
Feet.localPosition += new Vector3(0, (normalPlayerHeight - crouchPlayerHeight) / 3.5f, 0);
speedGain -= 3;
stepSoundVolume -= Vector2.one * 0.3f;
}
else if (Input.GetKeyUp(KeyCode.C))
else if (Input.GetKeyUp(KeyCode.LeftControl))
{
playerController.height = normalPlayerHeight;
Feet.localPosition -= new Vector3(0, (normalPlayerHeight - crouchPlayerHeight) / 3.5f, 0);
Expand Down
4 changes: 2 additions & 2 deletions UserSettings/EditorUserSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ EditorUserSettings:
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
flags: 0
RecentlyUsedSceneGuid-2:
value: 01080552010d5d59095f5d2742700e444f154a7b2f7975357a711e61e4b6603c
value: 510201515d0d5d0f5f0d0f7616710744444e19287d2b76322f7a4930b2e1666e
flags: 0
RecentlyUsedSceneGuid-3:
value: 510201515d0d5d0f5f0d0f7616710744444e19287d2b76322f7a4930b2e1666e
value: 01080552010d5d59095f5d2742700e444f154a7b2f7975357a711e61e4b6603c
flags: 0
UnityEditor.ShaderGraph.Blackboard:
value: 18135939215a0a5004000b0e15254b524c030a3f2964643d120d1230e9e93a3fd6e826abbd3c3e302a07a37e0901373ae01e0008f707250d171df81a53a5405d41895ac825e0100ec20313c0d91cddccd3d0c7efcca9bd80908fecb0f9cfddf1eff4e7a1b1eae482f0fdaee1e1928b86d888ed909c968797a7cf
Expand Down
59 changes: 30 additions & 29 deletions UserSettings/Layouts/default-2021.dwlt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 300}
m_MaxSize: {x: 24288, y: 24288}
vertical: 0
controlID: 125
controlID: 74
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
Expand All @@ -146,7 +146,7 @@ MonoBehaviour:
m_MinSize: {x: 100, y: 300}
m_MaxSize: {x: 8096, y: 24288}
vertical: 1
controlID: 126
controlID: 116
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
Expand All @@ -165,7 +165,7 @@ MonoBehaviour:
x: 0
y: 0
width: 800.8
height: 308.8
height: 165.6
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 16}
Expand All @@ -189,9 +189,9 @@ MonoBehaviour:
m_Position:
serializedVersion: 2
x: 0
y: 308.8
y: 165.6
width: 800.8
height: 311.2
height: 454.4
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 15}
Expand Down Expand Up @@ -251,7 +251,7 @@ MonoBehaviour:
m_MinSize: {x: 100, y: 200}
m_MaxSize: {x: 8096, y: 16192}
vertical: 1
controlID: 58
controlID: 80
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
Expand Down Expand Up @@ -383,9 +383,9 @@ MonoBehaviour:
m_Pos:
serializedVersion: 2
x: 0
y: 382.4
y: 239.2
width: 799.8
height: 290.2
height: 433.4
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
Expand All @@ -396,7 +396,7 @@ MonoBehaviour:
m_ShowGizmos: 0
m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 999.75, y: 336.5}
m_TargetSize: {x: 916, y: 515.5}
m_TextureFilterMode: 0
m_TextureHideFlags: 61
m_RenderIMGUI: 1
Expand All @@ -405,16 +405,16 @@ MonoBehaviour:
m_VSyncEnabled: 0
m_Gizmos: 0
m_Stats: 0
m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000
m_SelectedSizes: 01000000000000000000000000000000000000000000000000000000000000000000000000000000
m_ZoomArea:
m_HRangeLocked: 0
m_VRangeLocked: 0
hZoomLockedByDefault: 0
vZoomLockedByDefault: 0
m_HBaseRangeMin: -399.9
m_HBaseRangeMax: 399.9
m_VBaseRangeMin: -134.6
m_VBaseRangeMax: 134.6
m_HBaseRangeMin: -366.4
m_HBaseRangeMax: 366.4
m_VBaseRangeMin: -206.2
m_VBaseRangeMax: 206.2
m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1
Expand All @@ -433,22 +433,22 @@ MonoBehaviour:
x: 0
y: 21
width: 799.8
height: 269.2
height: 412.4
m_Scale: {x: 1, y: 1}
m_Translation: {x: 399.9, y: 134.6}
m_Translation: {x: 399.9, y: 206.2}
m_MarginLeft: 0
m_MarginRight: 0
m_MarginTop: 0
m_MarginBottom: 0
m_LastShownAreaInsideMargins:
serializedVersion: 2
x: -399.9
y: -134.6
y: -206.2
width: 799.8
height: 269.2
height: 412.4
m_MinimalGUI: 1
m_defaultScale: 1
m_LastWindowPixelSize: {x: 999.75, y: 362.75}
m_LastWindowPixelSize: {x: 999.75, y: 541.75}
m_ClearInEditMode: 1
m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 00000000000000000000
Expand Down Expand Up @@ -477,7 +477,7 @@ MonoBehaviour:
x: 0
y: 73.6
width: 799.8
height: 287.8
height: 144.6
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
Expand Down Expand Up @@ -565,7 +565,7 @@ MonoBehaviour:
collapsed: 0
displayed: 1
snapOffset: {x: 0, y: 24.600002}
snapOffsetDelta: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: -3.7999992}
snapCorner: 0
id: Orientation
index: 0
Expand Down Expand Up @@ -686,7 +686,7 @@ MonoBehaviour:
collapsed: 0
displayed: 0
snapOffset: {x: 0, y: -177.6}
snapOffsetDelta: {x: 0, y: 0}
snapOffsetDelta: {x: 0, y: 32.800003}
snapCorner: 2
id: Scene View/Particles
index: 10
Expand Down Expand Up @@ -785,11 +785,11 @@ MonoBehaviour:
m_Rotation:
m_Target: {x: 0.15463153, y: -0.04264379, z: 0.006635491, w: 0.98704416}
speed: 2
m_Value: {x: 0.1561096, y: -0.042633157, z: 0.0066993535, w: 0.9867965}
m_Value: {x: 0.15462925, y: -0.04264316, z: 0.0066353926, w: 0.98702955}
m_Size:
m_Target: 198.45134
speed: 2
m_Value: 207.80244
m_Value: 198.45134
m_Ortho:
m_Target: 1
speed: 2
Expand Down Expand Up @@ -1999,7 +1999,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 949bfdff569cfdff049ffdff2a56feff4e6efeff0a6ffeff4e74feff742bffff9ef1fffffefaffffd07a0000147b0000
m_ExpandedIDs: 1e7afdffdc7afdffb27ffdffe436feff4684feff843cffffc0faffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down Expand Up @@ -2063,7 +2063,8 @@ MonoBehaviour:
m_ShowAllHits: 0
m_SkipHidden: 0
m_SearchArea: 1
m_Folders: []
m_Folders:
- Assets/Scenes
m_Globs: []
m_OriginalText:
m_ViewMode: 0
Expand All @@ -2078,7 +2079,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 523e0000
m_LastClickedID: 15954
m_ExpandedIDs: 00000000ae73000020770000227700002477000026770000287700002a7700002c7700002e77000030770000327700003477000036770000387700003a7700003c7700003e77000040770000427700004477000046770000487700004a7700004c7700004e77000050770000527700005477000056770000587700005a7700005c7700005e77000060770000627700006477000066770000687700006a7700006c7700006e77000070770000727700007477000076770000787700007a7700007c7700007e77000080770000827700008477000086770000887700008a7700008c7700008e77000090770000927700009477000096770000987700009a7700009c7700009e770000a0770000a2770000a4770000a6770000a8770000aa770000ac770000
m_ExpandedIDs: 00000000042a0100062a0100082a01000a2a01000c2a01000e2a0100102a0100122a0100142a0100162a0100182a01001a2a01001c2a01001e2a0100202a0100222a0100242a0100262a0100282a01002a2a01002c2a01002e2a0100302a0100322a0100342a0100362a0100382a01003a2a01003c2a01003e2a0100402a0100422a0100442a0100462a0100482a01004a2a01004c2a01004e2a0100502a0100522a0100542a0100562a0100582a01005a2a01005c2a01005e2a0100602a0100622a0100642a0100662a0100682a01006a2a01006c2a01006e2a0100702a0100722a0100742a0100762a0100782a01007a2a01007c2a01007e2a0100802a0100822a0100842a0100862a0100882a01008a2a01008c2a01008e2a0100902a0100
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand All @@ -2103,10 +2104,10 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_AssetTreeState:
scrollPos: {x: 0, y: 420}
scrollPos: {x: 0, y: 480}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: ffffffff00000000ae73000020770000227700002477000026770000287700002a7700002c7700002e77000030770000327700003477000036770000387700003a7700003c7700003e77000040770000427700004477000046770000487700004a7700004c7700004e77000050770000527700005477000056770000587700005a7700005c7700005e770000607700006277000064770000667700006a7700006c7700006e77000070770000727700007477000076770000787700007a7700007c7700007e77000080770000827700008477000086770000887700008a7700008c7700008e77000090770000927700009477000096770000987700009a7700009c770000a0770000a4770000a6770000a8770000aa770000ac770000187a0000267a0000
m_ExpandedIDs: ffffffff00000000042a0100062a0100082a01000a2a01000c2a01000e2a0100102a0100122a0100142a0100162a0100182a01001a2a01001c2a01001e2a0100202a0100222a0100242a0100262a0100282a01002a2a01002c2a01002e2a0100302a0100322a0100342a0100362a0100382a01003a2a01003c2a01003e2a0100402a0100422a0100442a0100462a0100482a01004a2a01004c2a01004e2a0100502a0100522a0100542a0100562a0100582a01005a2a01005c2a01005e2a0100602a0100622a0100642a0100662a0100682a01006a2a01006c2a01006e2a0100702a0100722a0100742a0100762a0100782a01007a2a01007c2a01007e2a0100802a0100822a0100842a0100862a0100882a01008a2a01008c2a01008e2a0100902a0100
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down

0 comments on commit 8894fc7

Please sign in to comment.