private void OnEnable() { if (Toggle == null) { Toggle = GetComponentInChildren <SliderToggle>(); } if (Toggle == null) { return; } Toggle.OnToggle += OnToggle; if (TriggerTimes == UnityTriggerTimes.OnEnable) { OnToggle(Toggle.Toggled); } }
private void Reset() { Toggle = GetComponentInChildren <SliderToggle>(); }