Exemple #1
0
        public new void init()
        {
            enemyList._instance = this;
            this.root           = toggleGropFriendBase.mTransform.FindChild("mainBody/enemyPanel");
            this.containt       = this.root.FindChild("right/main/body/scroll/contains");
            this.contains       = this.containt.GetComponent <RectTransform>();
            this.enemyListCount = this.root.FindChild("right/main/body/enemyListCount/count").GetComponent <Text>();
            BaseButton baseButton = new BaseButton(this.root.FindChild("right/bottom/btnSearchPos"), 1, 1);

            baseButton.onClick    = new Action <GameObject>(this.onBtnSearchPos);
            this.searchEnemyPanel = this.root.FindChild("hidPanels/searchEnemyPanel");
            this.txtInifo         = this.searchEnemyPanel.FindChild("main/Text").GetComponent <Text>();
            BaseButton baseButton2 = new BaseButton(this.searchEnemyPanel.FindChild("title/btnClose"), 1, 1);
            BaseButton baseButton3 = new BaseButton(this.searchEnemyPanel.FindChild("bottom/btnCancel"), 1, 1);
            BaseButton baseButton4 = new BaseButton(this.searchEnemyPanel.FindChild("bottom/btnSearch"), 1, 1);

            baseButton2.onClick   = new Action <GameObject>(this.onBtnSEPClose);
            baseButton3.onClick   = new Action <GameObject>(this.onBtnSEPClose);
            baseButton4.onClick   = new Action <GameObject>(this.onBtnSEPSearch);
            this.deleteEnemyPanel = this.root.FindChild("hidPanels/deleteEnemyPanel");
            this.txtDInfo         = this.deleteEnemyPanel.FindChild("main/Text").GetComponent <Text>();
            BaseButton baseButton5 = new BaseButton(this.deleteEnemyPanel.FindChild("title/btnClose"), 1, 1);
            BaseButton baseButton6 = new BaseButton(this.deleteEnemyPanel.FindChild("bottom/btnCancel"), 1, 1);
            BaseButton baseButton7 = new BaseButton(this.deleteEnemyPanel.FindChild("bottom/btnOK"), 1, 1);

            baseButton5.onClick = new Action <GameObject>(this.onBtnDEPClose);
            baseButton6.onClick = new Action <GameObject>(this.onBtnDEPClose);
            baseButton7.onClick = new Action <GameObject>(this.onBtnDEPOk);
        }
Exemple #2
0
 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();
 }