示例#1
0
 void OnButtonVisibilityChanged(IButtonVisibility data)
 {
     if (data?.type == (int)ButtonType.Audio)
     {
         m_Button.transform.parent.gameObject.SetActive(data.visible);
     }
 }
示例#2
0
 void OnButtonVisibilityChanged(IButtonVisibility data)
 {
     if (data != null && (ButtonType)data.type == ButtonType.Follow)
     {
         m_FollowCameraButton.gameObject.SetActive(data.visible);
     }
 }
 void OnButtonVisibilityChanged(IButtonVisibility data)
 {
     if (data?.type == (int)ButtonType.Settings)
     {
         m_ButtonVisibility = data.visible;
         m_DialogButton.transform.parent.gameObject.SetActive(m_ButtonVisibility && m_ActiveDialogSelector.GetValue() != OpenDialogAction.DialogType.LandingScreen);
     }
 }
示例#4
0
 void OnButtonVisibilityChanged(IButtonVisibility data)
 {
     if (data?.type == (int)ButtonType.Help)
     {
         m_Visibility = data.visible;
         m_Button.transform.parent.gameObject.SetActive(m_ActiveDialogSelector.GetValue() != OpenDialogAction.DialogType.LandingScreen &&
                                                        m_NavigationModeSelector.GetValue() != SetNavigationModeAction.NavigationMode.AR &&
                                                        m_NavigationModeSelector.GetValue() != SetNavigationModeAction.NavigationMode.VR &&
                                                        m_Visibility
                                                        );
     }
 }
示例#5
0
 void OnButtonVisibilityChanged(IButtonVisibility data)
 {
     if (data?.type == (int)ButtonType.ProjectList)
     {
         m_ProjectListButton.transform.parent.gameObject.SetActive(data.visible);
     }
     else if (data?.type == (int)ButtonType.Refresh)
     {
         m_RefreshVisibility = data.visible;
         m_RefreshButton.transform.parent.gameObject.SetActive(m_RefreshVisibility &&
                                                               m_ActiveDialogSelector.GetValue() == OpenDialogAction.DialogType.LandingScreen &&
                                                               m_DialogModeSelector.GetValue() == SetDialogModeAction.DialogMode.Normal
                                                               );
     }
 }