начал делать структуру кода
This commit is contained in:
1 parent
2bce2df311
commit
02a1d74b2d
91 files changed
+129
-18
No files matched your search
Generated
+15
@@ -0,0 +1,15 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Rider ignored files
|
||||
/modules.xml
|
||||
/contentModel.xml
|
||||
/projectSettingsUpdater.xml
|
||||
/.idea.Souljack.iml
|
||||
# Ignored default folder with query files
|
||||
/queries/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
Generated
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -1,5 +1,21 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-3822165081800644479
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 81180773991d8724ab7f2d216912b564, type: 3}
|
||||
m_Name: ChromaticAberration
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.ChromaticAberration
|
||||
active: 1
|
||||
intensity:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.505
|
||||
--- !u!114 &-2000355431073123474
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
@@ -68,6 +84,7 @@ MonoBehaviour:
|
||||
- {fileID: 1341611271618981203}
|
||||
- {fileID: 7813832346886808349}
|
||||
- {fileID: 331411648365755657}
|
||||
- {fileID: -3822165081800644479}
|
||||
--- !u!114 &331411648365755657
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
|
||||
@@ -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
|
||||
@@ -72,24 +72,7 @@ MonoBehaviour:
|
||||
- rid: 6588237625532874761
|
||||
- rid: 6588237625532874762
|
||||
m_RuntimeSettings:
|
||||
m_List:
|
||||
- rid: 6852985685364965378
|
||||
- rid: 6852985685364965380
|
||||
- rid: 6852985685364965381
|
||||
- rid: 6852985685364965384
|
||||
- rid: 6852985685364965386
|
||||
- rid: 6852985685364965392
|
||||
- rid: 6852985685364965394
|
||||
- rid: 8712630790384254976
|
||||
- rid: 4284062438471237637
|
||||
- rid: 5747374308340793346
|
||||
- rid: 5747374308340793347
|
||||
- rid: 5747374308340793348
|
||||
- rid: 6588237625532874753
|
||||
- rid: 6588237625532874756
|
||||
- rid: 6588237625532874757
|
||||
- rid: 6588237625532874759
|
||||
- rid: 6588237625532874761
|
||||
m_List: []
|
||||
m_AssetVersion: 11
|
||||
m_ObsoleteDefaultVolumeProfile: {fileID: 0}
|
||||
m_RenderingLayerNames:
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Regular → Executable
File mode changed.
Reference in new issue
Block a user