public new void init() { actionBlackListPanelPrefab._instance = this; this.root = toggleGropFriendBase.mTransform.FindChild("itemPrefabs/actionBlackListPanel"); BaseButton baseButton = new BaseButton(this.root.FindChild("buttons/btnAddFriend"), 1, 1); BaseButton baseButton2 = new BaseButton(this.root.FindChild("buttons/btnCancleBlackList"), 1, 1); BaseButton baseButton3 = new BaseButton(this.root.FindChild("btnCloseBg"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onAddFriendClick); baseButton2.onClick = new Action <GameObject>(this.onBtnCancleBlackListClick); baseButton3.onClick = new Action <GameObject>(this.onBtnCloseBgClick); }
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(); }