public override void init() { a3_teamMemberList._instance = this; this.itemTeamMemberList = new List <a3_teamMemberList.itemTeamMember>(); BaseButton baseButton = new BaseButton(base.transform.FindChild("main/title/btnClose"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onBtnCloseClick); this.itemMemberPrefab = base.transform.FindChild("main/itemPrefab/itemTeamMember"); a3_teamMemberList.contant = base.transform.FindChild("main/body/main/Scroll/content"); BaseButton baseButton2 = new BaseButton(base.transform.FindChild("main/bottom/btnJoin"), 1, 1); baseButton2.onClick = new Action <GameObject>(this.onBtnJoinClick); this.getProfessionSprite(); }
override public void init() { _instance = this; itemTeamMemberList = new List <itemTeamMember>(); BaseButton btnClose = new BaseButton(transform.FindChild("main/title/btnClose")); btnClose.onClick = onBtnCloseClick; itemMemberPrefab = transform.FindChild("main/itemPrefab/itemTeamMember"); contant = transform.FindChild("main/body/main/Scroll/content"); BaseButton btnJoin = new BaseButton(transform.FindChild("main/bottom/btnJoin")); btnJoin.onClick = onBtnJoinClick; getProfessionSprite(); getComponentByPath <Text>("main/title/bg/Text").text = ContMgr.getCont("a3_teamMemberList_0"); getComponentByPath <Text>("main/body/title/txtName").text = ContMgr.getCont("a3_teamMemberList_1"); getComponentByPath <Text>("main/body/title/txtLvl").text = ContMgr.getCont("a3_teamMemberList_2"); getComponentByPath <Text>("main/body/title/txtKnightage").text = ContMgr.getCont("a3_teamMemberList_3"); getComponentByPath <Text>("main/body/title/txtMap").text = ContMgr.getCont("a3_teamMemberList_4"); getComponentByPath <Text>("main/bottom/btnJoin/Text").text = ContMgr.getCont("a3_teamMemberList_5"); }