diff --git a/Assets/Fungus/Scripts/Commands/SetSliderValue.cs b/Assets/Fungus/Scripts/Commands/SetSliderValue.cs index f014a747..cfde6251 100644 --- a/Assets/Fungus/Scripts/Commands/SetSliderValue.cs +++ b/Assets/Fungus/Scripts/Commands/SetSliderValue.cs @@ -24,7 +24,10 @@ namespace Fungus public override void OnEnter() { - slider.value = value; + if (slider != null) + { + slider.value = value; + } Continue(); }