mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 14:00:17 +00:00
add "pause spawning" setting
This commit is contained in:
parent
3e89f57747
commit
7a8dac9e2a
1 changed files with 8 additions and 0 deletions
|
@ -108,12 +108,20 @@ namespace SanAndreasUnity.Settings {
|
|||
persistType = OptionsWindow.InputPersistType.None,
|
||||
};
|
||||
|
||||
OptionsWindow.BoolInput m_pauseSpawning = new OptionsWindow.BoolInput ("Pause spawning") {
|
||||
isAvailable = () => SpawnManager.Instance != null,
|
||||
getValue = () => SpawnManager.Instance.IsSpawningPaused,
|
||||
setValue = (value) => { SpawnManager.Instance.IsSpawningPaused = value; },
|
||||
persistType = OptionsWindow.InputPersistType.OnStart
|
||||
};
|
||||
|
||||
|
||||
|
||||
void Awake ()
|
||||
{
|
||||
var inputs = new OptionsWindow.Input[] { m_timeScaleInput, m_gravityInput, m_displayHealthBarsInput, m_displayMinimapInput,
|
||||
m_runInBackgroundInput, m_drawLineFromGunInput, m_enableCamera,
|
||||
m_pauseSpawning,
|
||||
m_pedSyncRate,
|
||||
m_vehicleSyncRate, m_syncVehicleTransformUsingSyncVars, m_syncVehiclesLinearVelocity,
|
||||
m_syncVehiclesAngularVelocity, m_controlWheelsOnLocalPlayer, m_controlVehicleInputOnLocalPlayer,
|
||||
|
|
Loading…
Reference in a new issue