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; }
public override void GetActiveInterfaceObjects(List <Widget> currentObjects, int flag) { if (flag < 0) { flag = GUIEditorID; } Widget w = new Widget(flag); w.SearchCamera = NGUICamera; w.BoxCollider = NextChapterButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = PrevChapterButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = FinishedReadingButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = WhiteOnBlack.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = SimpleMode.GetComponent <BoxCollider>(); currentObjects.Add(w); }
public void Init() { mCollider = mChcekedBox.GetComponent <BoxCollider>(); mBtnTween = mChcekedBox.GetComponent <UIButtonTween>(); }
void SetButtonTweenState(UICheckbox checkbox, bool setting) { TweenScale tween = checkbox.GetComponent <TweenScale>(); tween.enabled = setting; }