public new void init() { neighborList._instance = this; this.root = toggleGropFriendBase.mTransform.FindChild("mainBody/neighborPanel"); this.containt = this.root.FindChild("right/main/body/scroll/contains"); this.contains = this.containt.GetComponent <RectTransform>(); this.nearbyListCount = this.root.FindChild("right/main/body/nearbyListCount/count").GetComponent <Text>(); BaseButton baseButton = new BaseButton(this.root.FindChild("right/bottom/btnRefresh"), 1, 1); BaseButton baseButton2 = new BaseButton(this.root.FindChild("right/bottom/btnAddFriend"), 1, 1); BaseButton baseButton3 = new BaseButton(this.root.FindChild("right/bottom/btnTeam"), 1, 1); baseButton.onClick = new Action <GameObject>(this.onBtnRefresh); baseButton2.onClick = new Action <GameObject>(this.onBtnAddFriend); baseButton3.onClick = new Action <GameObject>(this.onBtnTeam); }
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(); }