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
        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);
        }
예제 #3
0
 public void Init()
 {
     mCollider = mChcekedBox.GetComponent <BoxCollider>();
     mBtnTween = mChcekedBox.GetComponent <UIButtonTween>();
 }
예제 #4
0
    void SetButtonTweenState(UICheckbox checkbox, bool setting)
    {
        TweenScale tween = checkbox.GetComponent <TweenScale>();

        tween.enabled = setting;
    }