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; }
void DoSetPlayDirection() { UIButtonTween tween = OrButtonTweenComponent.Value as UIButtonTween; if (tween == null) { return; } else { tween.playDirection = playDirection; } }
public void Init() { mCollider = mChcekedBox.GetComponent <BoxCollider>(); mBtnTween = mChcekedBox.GetComponent <UIButtonTween>(); }