protected override void SetValue(bool value) { if (Value != value) { Scope.Click(); SwitchHandle.WaitForCssTransitionEnd("switch", DefaultAnimationWaitingOptions, SearchOptions.SafelyAtOnce()); } }
/// <summary> /// 初始化 /// </summary> public void Awake() { m_Switch = GetComponentInChildren <SwitchHandle>(); this.EnableNumber = true; this.NumberName = "S"; }