protected override void OnInit()
 {
     base.OnInit();
     slider = GetComponent <UnityEngine.UI.Slider>();
     slider.onValueChanged.AddListener(ValueChangeHandler);
     lbNum = Make <GameLabel>("Text");
 }
Example #2
0
        protected override void OnInit()
        {
            base.OnInit();

            imgSign = Make <GameImage>("numkuang");
            lbNum   = Make <GameLabel>("num");

            if (imgSign != null)
            {
                imgSign.Visible = false;
            }
            if (lbNum != null)
            {
                lbNum.Visible = false;
            }
        }