mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
move "enter vehicle radius" setting to PedManager
This commit is contained in:
parent
b4fa58650f
commit
ce0fb3ffa9
2 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
public GameObject pedPrefab;
|
||||
|
||||
public float pedTurnSpeed = 10f;
|
||||
public float enterVehicleRadius = 2.0f;
|
||||
|
||||
[Header("Health bar")]
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue