public new void init() { actionEnemyPanel._instance = this; this.root = toggleGropFriendBase.mTransform.FindChild("itemPrefabs/actionEnemyPanel"); BaseButton baseButton = new BaseButton(this.root.FindChild("buttons/btnDelEnemy"), 1, 1); BaseButton baseButton2 = new BaseButton(this.root.FindChild("buttons/btnAdd"), 1, 1); BaseButton baseButton3 = new BaseButton(this.root.FindChild("buttons/btnBlackList"), 1, 1); BaseButton baseButton4 = new BaseButton(this.root.FindChild("btnCloseBg"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onBtnDelEnemyClick); baseButton2.onClick = new Action <GameObject>(this.onBtnAddClick); baseButton3.onClick = new Action <GameObject>(this.onBtnBlackListClick); baseButton4.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(); }