Пример #1
0
 public void HidePanel(UI_Panel panel, TransitionType t)
 {
     if (!panel.IsHidden)
     {
         panel.Hide(t);
     }
 }
Пример #2
0
    private void Start()
    {
        menuPanel.gameObject.SetActive(true);
        helpPanel.gameObject.SetActive(true);
        newGamePanel.gameObject.SetActive(true);
        gamePanel.gameObject.SetActive(true);
        bottomPanel.gameObject.SetActive(true);
        notificationPanel.gameObject.SetActive(true);
        playerCardPanel.gameObject.SetActive(true);

        audioToggle.OnToggle += AudioManager.Instance.MuteAudio;

        helpPanel.OnGetFocus  += () => bottomPanel.Show(TransitionType.None);
        helpPanel.OnLoseFocus += () => bottomPanel.Hide(TransitionType.None);

        gamePanel.OnGetFocus  += () => bottomPanel.Show(TransitionType.None);
        gamePanel.OnLoseFocus += () => bottomPanel.Hide(TransitionType.None);
    }
Пример #3
0
 public void OpenGamePanel()
 {
     if (!newGamePanel.IsHidden)
     {
         newGamePanel.Hide(TransitionType.LeftSlide);
     }
     gamePanel.Show(TransitionType.RightSlide);
     endGameButton.gameObject.SetActive(true);
     OnGameStart?.Invoke((int)playersSlider.value);
 }
Пример #4
0
 public void Hide()
 {
     notificationPanel.Hide(TransitionType.Fade);
 }