protected override void Init() { sendBtn = transform.Find("SendBtn").GetComponent <GUISingleButton>(); nameInput = transform.Find("NameInput").GetComponent <GUISingleInput>(); societyManifestoInput = transform.Find("SocietyManifestoInput").GetComponent <GUISingleInput>(); sendBtn.onClick = OnSendClick; }
protected override void Init() { societyName = "biaoyi"; icon = transform.Find("SocietyIcon").GetComponent <UISprite>(); createBtn = transform.Find("CreateBtn").GetComponent <GUISingleButton>(); nameInput = transform.Find("NameInput").GetComponent <GUISingleInput>(); joinLevelInput = transform.Find("JoinLevelInput").GetComponent <GUISingleInput>(); societyManifestoInput = transform.Find("SocietyManifestoInput").GetComponent <GUISingleInput>(); lastIconBtn.onClick = OnLastClick; nextIconBtn.onClick = OnNextClick; createBtn.onClick = OnCreateSocietyClick; changeIconBtn.onClick = OnChangeIconClick; }
protected override void Init() { _searchHeroPanel = UnityUtil.FindObjectRecursively(gameObject, "SearchHeroPanel").transform; _searchBtn = UnityUtil.FindComponent <GUISingleButton>(_searchHeroPanel, "SearchBtn"); _refreshBtn = UnityUtil.FindComponent <GUISingleButton>(_searchHeroPanel, "RefreshBtn"); _searchInput = UnityUtil.FindComponent <GUISingleInput>(_searchHeroPanel, "SearchInput"); multList = transform.GetComponentsInChildren <GUISingleMultList>(true); checkBoxs.onClick = OnCheckClick; backBtn.onClick = OnBackClick; view = transform.GetComponentInChildren <UIScrollView>().transform; _searchBtn.onClick = OnSearch; _refreshBtn.onClick = OnRefreshBtn; checkBoxs.DefauleIndex = 0; }
protected override void Init() { societyScrollview = transform.Find("SocietyScrollView"); societyMultList = transform.Find("SocietyScrollView/SocietyMultList").GetComponent <GUISingleMultList>(); searchSociettScrollView = transform.Find("SearchSocietyScrollView"); searchSocietyMultList = transform.Find("SearchSocietyScrollView/SearchSocietyMultList").GetComponent <GUISingleMultList>(); otherSocietyInviteScrollView = transform.Find("OtherSocietyInviteScrollView"); otherSocietyInviteMultList = transform.Find("OtherSocietyInviteScrollView/OtherSocietyInviteMultList").GetComponent <GUISingleMultList>(); titleTransfrom = transform.Find("Title"); searchSocietyPanel = transform.Find("SearchSocietyPanel"); searchBtn = transform.Find("SearchSocietyPanel/SearchBtn").GetComponent <GUISingleButton>(); searchInput = transform.Find("SearchSocietyPanel/SearchInput").GetComponent <GUISingleInput>(); notSearchSociety = transform.Find("NotSearchSociety"); createSocietyPanel = transform.Find("UICreateSocietyPanel"); checkBoxs.onClick = OnCheckClick; backBtn.onClick = OnBackClick; searchBtn.onClick = OnSearchClick; refreshBtn.onClick = OnRefreshClick; }