public void Init(System.Action <GameObject, bool> checkBoxEvent)
 {
     m_CheckBoxEvent = checkBoxEvent;
     mCollider       = mChcekedBox.GetComponent <BoxCollider>();
     mBtnTween       = mChcekedBox.GetComponent <UIButtonTween>();
     UIEventListener.Get(mCollider.gameObject).onActivate = CheckBoxEvent;
     mBtnTween.onFinished = TweenFinish;
 }
예제 #2
0
        void DoSetPlayDirection()
        {
            UIButtonTween tween = OrButtonTweenComponent.Value as UIButtonTween;

            if (tween == null)
            {
                return;
            }
            else
            {
                tween.playDirection = playDirection;
            }
        }
예제 #3
0
 public void Init()
 {
     mCollider = mChcekedBox.GetComponent <BoxCollider>();
     mBtnTween = mChcekedBox.GetComponent <UIButtonTween>();
 }