예제 #1
0
 public new void init()
 {
     toggleGropFriend._instance = this;
     this.togFriend             = toggleGropFriendBase.mTransform.FindChild("mainBody/left/toggleGroup/togFriend").GetComponent <Toggle>();
     this.togBlackList          = toggleGropFriendBase.mTransform.FindChild("mainBody/left/toggleGroup/togBlacklist").GetComponent <Toggle>();
     this.togEnemy  = toggleGropFriendBase.mTransform.FindChild("mainBody/left/toggleGroup/togEnemy").GetComponent <Toggle>();
     this.togNearby = toggleGropFriendBase.mTransform.FindChild("mainBody/left/toggleGroup/togNearby").GetComponent <Toggle>();
     this.togFriend.onValueChanged.AddListener(new UnityAction <bool>(this.onTogFriendClick));
     this.togBlackList.onValueChanged.AddListener(new UnityAction <bool>(this.onTogBlackListClick));
     this.togEnemy.onValueChanged.AddListener(new UnityAction <bool>(this.onTogEnemyListClick));
     this.togNearby.onValueChanged.AddListener(new UnityAction <bool>(this.onTogNearbyListClick));
 }
예제 #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();
 }