override public void init() { instans = this; inText(); new BaseButton(transform.FindChild("title/bgClose")).onClick = onBtnClose; _content = transform.FindChild("body/awardItems/content"); BaseButton btnClose = new BaseButton(transform.FindChild("title/btnClose")); btnClose.onClick = onBtnClose; //welfareProxy.getInstance().addEventListener(welfareProxy.SHOWDAILYRECHARGE, onShowDaily); if (a3_pet_renew.instance != null) { transform.SetSiblingIndex(transform.GetSiblingIndex() - 1); } }
override public void onShowed() { welfareProxy.getInstance().addEventListener(welfareProxy.SHOWDAILYRECHARGE, onShowDaily); _instans = this; if (uiData != null) { InterfaceMgr.getInstance().floatUI.localScale = Vector3.zero; uint last_day = (uint)uiData[0]; //最后领取的时间 day_count = (uint)uiData[1]; //领奖的天数位置 createAward(day_count); } //if (day_count == 6) //{ // _canget.gameObject.SetActive(true); //} }
public override void init() { a3_everydayLogin.instans = this; new BaseButton(base.transform.FindChild("title/bgClose"), 1, 1).onClick = new Action <GameObject>(this.onBtnClose); this._content = base.transform.FindChild("body/awardItems/content"); this._itemAwardPrefab = base.transform.FindChild("temp/itemAward"); BaseButton baseButton = new BaseButton(base.transform.FindChild("title/btnClose"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onBtnClose); this._toggleImage = base.transform.FindChild("body/btnGet/toggleImage"); this._toggleImage.gameObject.SetActive(false); BaseProxy <welfareProxy> .getInstance().addEventListener(welfareProxy.SHOWDAILYRECHARGE, new Action <GameEvent>(this.onShowDaily)); bool flag = a3_pet_renew.instance != null; if (flag) { base.transform.SetSiblingIndex(base.transform.GetSiblingIndex() - 1); } }