protected override void OnInitDone() { base.OnInitDone(); mItem = SkinTransform.Find("PanelMove/Items/Item").gameObject; ShowItems(); }
void init() { mName = SkinTransform.Find("Name").GetComponent <UILabel>(); // mInputNum = SkinTransform.Find("InputNum/Label").GetComponent<UILabel>(); mInput = SkinTransform.Find("InputNum").GetComponent <UIInput>(); mInput.value = mNowSeleNums.ToString(); mInput.onChange.Add(new EventDelegate(ChangeInput)); }
private void Init() { mItem = SkinTransform.Find("PanelMove/Items/Item").gameObject; Transform menuTran = SkinTransform.Find("Conten/Menu"); BoxCollider[] buttonArr = menuTran.GetComponentsInChildren <BoxCollider>(true); foreach (var box in buttonArr) { menuButtons.Add(box.gameObject); } mData = MoNiData(Random.Range(10, 30)); ShowItems(); }
protected override void OnInitDone() { base.OnInitDone(); mInputAcc = SkinTransform.Find("InputAce").GetComponent <UIInput>(); mInputPass = SkinTransform.Find("InputPass").GetComponent <UIInput>(); string str = (string)_sceneArgs[0]; Debug.Log(str + "sdfs afdsafsdafafdsaf"); int i = (int)_sceneArgs[1]; bool bo = (bool)_sceneArgs[2]; Debug.Log(str + "----" + i + " ----" + bo); }
protected override void OnInitDone() { base.OnInitDone(); string str = (string)_sceneArgs[0]; Debug.Log(str + "----"); mSlider = SkinTransform.Find("Slider").GetComponent <UISlider>(); mLabel = SkinTransform.Find("ProLabel").GetComponent <UILabel>(); mSlider.value = 0; SetLabelInfo(mSlider.value); StartCoroutine(Test()); }