Exemplo n.º 1
0
        protected override void SetValue(bool value)
        {
            if (Value != value)
            {
                Scope.Click();

                SwitchHandle.WaitForCssTransitionEnd("switch", DefaultAnimationWaitingOptions, SearchOptions.SafelyAtOnce());
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void Awake()
 {
     m_Switch          = GetComponentInChildren <SwitchHandle>();
     this.EnableNumber = true;
     this.NumberName   = "S";
 }