move "enter vehicle radius" setting to PedManager

This commit is contained in:
in0finite 2019-06-23 01:51:34 +02:00
parent b4fa58650f
commit ce0fb3ffa9
2 changed files with 4 additions and 3 deletions

View file

@ -11,6 +11,7 @@ namespace SanAndreasUnity.Behaviours
public GameObject pedPrefab;
public float pedTurnSpeed = 10f;
public float enterVehicleRadius = 2.0f;
[Header("Health bar")]

View file

@ -19,9 +19,9 @@ namespace SanAndreasUnity.Settings {
description = "Enter vehicle radius",
minValue = 1,
maxValue = 15,
isAvailable = () => Ped.Instance != null,
getValue = () => Ped.Instance.EnterVehicleRadius,
setValue = (value) => { Ped.Instance.EnterVehicleRadius = value; },
isAvailable = () => PedManager.Instance != null,
getValue = () => PedManager.Instance.enterVehicleRadius,
setValue = (value) => { PedManager.Instance.enterVehicleRadius = value; },
};
OptionsWindow.BoolInput m_showSpeedometerInput = new OptionsWindow.BoolInput() {