예제 #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);
 }