public new void init() { blackList._instance = this; this.root = toggleGropFriendBase.mTransform.FindChild("mainBody/blackListPanel"); this.containt = this.root.FindChild("right/main/body/scroll/contains"); this.contains = this.containt.GetComponent <RectTransform>(); this.blackListCount = this.root.FindChild("right/main/body/blackListCount/count").GetComponent <Text>(); BaseButton baseButton = new BaseButton(this.root.FindChild("right/bottom/btnAddBlackList"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onBtnAddBlackListClick); BaseButton baseButton2 = new BaseButton(this.root.FindChild("hidPanels/addBlackListPanel/bottom/btnAdd"), 1, 1); baseButton2.onClick = new Action <GameObject>(this.onBtnAddToBlackListClick); BaseButton baseButton3 = new BaseButton(this.root.FindChild("hidPanels/addBlackListPanel/bottom/btnCancle"), 1, 1); baseButton3.onClick = new Action <GameObject>(this.onBtnCancleClick); BaseButton baseButton4 = new BaseButton(this.root.FindChild("hidPanels/addBlackListPanel/title/btnClose"), 1, 1); baseButton4.onClick = new Action <GameObject>(this.onBtnCancleClick); this.addBlackListPanel = this.root.FindChild("hidPanels/addBlackListPanel"); this.txtAddBlackListName = this.root.FindChild("hidPanels/addBlackListPanel/main/InputField").GetComponent <InputField>(); }
public static void init() { toggleGropFriendBase.mFriendList = new friendList(); toggleGropFriendBase.mBlackList = new blackList(); toggleGropFriendBase.mEnemyList = new enemyList(); toggleGropFriendBase.mNeighborList = new neighborList(); toggleGropFriendBase.mToggleGropFriend = new toggleGropFriend(); toggleGropFriendBase.mRecommendList = new recommendList(); toggleGropFriendBase.addToBalckListWaring = new AddToBalckListWaring(); toggleGropFriendBase.actionBlackListPanel = new actionBlackListPanelPrefab(); toggleGropFriendBase._actionEnemyPanel = new actionEnemyPanel(); toggleGropFriendBase._actionEnemyPanel.init(); toggleGropFriendBase.actionBlackListPanel.init(); toggleGropFriendBase.mRecommendList.init(); toggleGropFriendBase.mFriendList.init(); toggleGropFriendBase.mBlackList.init(); toggleGropFriendBase.mEnemyList.init(); toggleGropFriendBase.mNeighborList.init(); toggleGropFriendBase.mToggleGropFriend.init(); toggleGropFriendBase.app.init(); toggleGropFriendBase.anpp.init(); toggleGropFriendBase.addToBalckListWaring.init(); }