Система со сменой колес дорабавтываю. Есть задатки системы объявлений и встречи с продавцом
This commit is contained in:
1 parent
2ce853999d
commit
27ad7eac11
25 files changed
+37130
-34404
No files matched your search
@@ -66,7 +66,10 @@ public class PlayerMovement : MonoBehaviour
|
||||
|
||||
private void HandleCrouch()
|
||||
{
|
||||
isCrouching = Input.GetKey(crouchKey);
|
||||
if (Input.GetKeyDown(crouchKey))
|
||||
{
|
||||
isCrouching = !isCrouching;
|
||||
}
|
||||
|
||||
float targetHeight = isCrouching ? crouchHeight : standHeight;
|
||||
float currentDelta = initialHeight - targetHeight;
|
||||
|
||||
Reference in new issue
Block a user