protected override void OnInit() { base.OnInit(); slider = GetComponent <UnityEngine.UI.Slider>(); slider.onValueChanged.AddListener(ValueChangeHandler); lbNum = Make <GameLabel>("Text"); }
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; } }