public static void OnNavigationButtonClicked(LobbyManager.LobbyPageCategory category) { if (NavigationButtonClickedEvent != null) { NavigationButtonClickedEvent(category); } }
public override void PageDisplayContorl(LobbyManager.LobbyPageCategory type) { base.PageDisplayContorl(type); if (GetPage() == type) { // Empty } }
public virtual void PageDisplayContorl(LobbyManager.LobbyPageCategory type) { // If clicked button's navigation category match with this button. if (GetPage() == type) { ShowUI(); } else { HideUI(); } }
public override void PageDisplayContorl(LobbyManager.LobbyPageCategory type) { base.PageDisplayContorl(type); if (GetPage() == type) { if (!m_RoomList || !m_RoomPreview) { m_RoomList = GetComponentInChildren <RoomList>(); m_RoomPreview = GetComponentInChildren <RoomPreview>(); } // Update the room list when display this page UpdateRoomListAndPerview(); } }
/// <summary> /// Navigation button clicked event receiver, receive broadcast message form the DelegateAndEventManager. /// </summary> /// <param name="type"></param> private void OnButtonClicked(LobbyManager.LobbyPageCategory type) { // If clicked button's navigation category match with this button. if (m_NavType == type) { // Diable the button for pervent form user accidently click on the button multiple times. m_Button.interactable = false; // Show the decoration bar, highlight the clicked button. m_DecorationBar.enabled = true; } else { // Enable other buttons. m_Button.interactable = true; // Hide the decoration bar m_DecorationBar.enabled = false; } }