начал делать структуру кода
This commit is contained in:
1 parent
2bce2df311
commit
02a1d74b2d
91 files changed
+129
-18
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace _Project.Scripts
|
||||
{
|
||||
public class GameManager : MonoBehaviour
|
||||
{
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6eaeb928849e7dba9bfa5959173a544e
|
||||
@@ -0,0 +1,56 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerStats : MonoBehaviour
|
||||
{
|
||||
[Header("Камера и Мышь")]
|
||||
public float mouseSensitivity = 0.1f;
|
||||
public float maxLookAngle = 80f;
|
||||
|
||||
[Header("Скорости передвижения (м/с)")]
|
||||
public float moveSpeed = 6.5f;
|
||||
public float sprintSpeed = 9.5f;
|
||||
public float crouchSpeed = 3f;
|
||||
|
||||
[Header("Параметры Подката (Slide)")]
|
||||
public float slideInitialSpeed = 15f;
|
||||
public float slideDuration = 0.85f;
|
||||
public float slideFriction = 2.8f;
|
||||
public float slideCameraTiltAngle = 4f;
|
||||
public float slideCooldown = 0.35f;
|
||||
|
||||
[Header("Физика CS / Source (Bunnyhop & Strafe)")]
|
||||
public float groundFriction = 5f;
|
||||
public float groundAcceleration = 10f;
|
||||
public float airAcceleration = 80f;
|
||||
public float airCap = 2.0f;
|
||||
public bool showSpeedometer = true;
|
||||
|
||||
[Header("Гравитация и Прыжок")]
|
||||
public float jumpHeight = 1.35f;
|
||||
public float gravity = -25f;
|
||||
public float fallMultiplier = 1.8f;
|
||||
public LayerMask groundLayer;
|
||||
public float groundCheckDistance = 0.12f;
|
||||
public float jumpBufferTime = 0.12f;
|
||||
|
||||
[Header("Параметры приседания")]
|
||||
public float standingHeight = 2f;
|
||||
public float crouchingHeight = 1.05f;
|
||||
public float standingCameraY = 1.6f;
|
||||
public float crouchingCameraY = 0.8f;
|
||||
public float crouchTransitionSpeed = 15f;
|
||||
|
||||
[Header("Тряска Камеры (Headbob)")]
|
||||
public bool enableHeadBob = true;
|
||||
public float walkBobSpeed = 12f;
|
||||
public float walkBobAmount = 0.04f;
|
||||
public float sprintBobSpeed = 15f;
|
||||
public float sprintBobAmount = 0.07f;
|
||||
public float impactRecoverySpeed = 6f;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// Загружаем чувствительность мыши при старте
|
||||
mouseSensitivity = PlayerPrefs.GetFloat("MouseSensitivity", mouseSensitivity);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 288fef68efe942f1bae865374c8fed93
|
||||
timeCreated: 1789994991
|
||||
Reference in new issue
Block a user