From 9fbd976388d1aff014c7a1d6c0fa88b94830c139 Mon Sep 17 00:00:00 2001 From: in0finite Date: Sun, 23 Jun 2019 01:43:18 +0200 Subject: [PATCH] Remove "jump speed" setting --- Assets/Scripts/Behaviours/Ped/Ped.cs | 2 -- Assets/Scripts/Settings/PlayerSettings.cs | 10 +--------- Docs/TODO.md | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Assets/Scripts/Behaviours/Ped/Ped.cs b/Assets/Scripts/Behaviours/Ped/Ped.cs index b8181860..85593d98 100644 --- a/Assets/Scripts/Behaviours/Ped/Ped.cs +++ b/Assets/Scripts/Behaviours/Ped/Ped.cs @@ -41,8 +41,6 @@ namespace SanAndreasUnity.Behaviours public CharacterController characterController { get; private set; } - public float jumpSpeed = 8.0f; - [SerializeField] private float m_cameraDistance = 3f; public float CameraDistance { get { return m_cameraDistance; } set { m_cameraDistance = value; } } diff --git a/Assets/Scripts/Settings/PlayerSettings.cs b/Assets/Scripts/Settings/PlayerSettings.cs index 5476baa9..127839cc 100644 --- a/Assets/Scripts/Settings/PlayerSettings.cs +++ b/Assets/Scripts/Settings/PlayerSettings.cs @@ -7,14 +7,6 @@ namespace SanAndreasUnity.Settings { public class PlayerSettings : MonoBehaviour { - OptionsWindow.FloatInput m_jumpSpeedInput = new OptionsWindow.FloatInput() { - description = "Jump speed", - minValue = 3, - maxValue = 30, - isAvailable = () => Ped.Instance != null, - getValue = () => Ped.Instance.jumpSpeed, - setValue = (value) => { Ped.Instance.jumpSpeed = value; }, - }; OptionsWindow.FloatInput m_turnSpeedInput = new OptionsWindow.FloatInput() { description = "Turn speed", minValue = 3, @@ -59,7 +51,7 @@ namespace SanAndreasUnity.Settings { void Awake () { - OptionsWindow.RegisterInputs ("PLAYER", m_jumpSpeedInput, m_turnSpeedInput, m_enterVehicleRadiusInput, + OptionsWindow.RegisterInputs ("PLAYER", m_turnSpeedInput, m_enterVehicleRadiusInput, m_showSpeedometerInput, m_mouseSensitivityXInput, m_mouseSensitivityYInput); } diff --git a/Docs/TODO.md b/Docs/TODO.md index 902a3bbd..7e8b847d 100644 --- a/Docs/TODO.md +++ b/Docs/TODO.md @@ -22,7 +22,7 @@ - Make all settings persistent -- Add option to change fixed delta time +- Add option to change fixed delta time ? - Crouching: adjust camera aim offset ? ;