public void HidePanel(UI_Panel panel, TransitionType t) { if (!panel.IsHidden) { panel.Hide(t); } }
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); }
public void OpenGamePanel() { if (!newGamePanel.IsHidden) { newGamePanel.Hide(TransitionType.LeftSlide); } gamePanel.Show(TransitionType.RightSlide); endGameButton.gameObject.SetActive(true); OnGameStart?.Invoke((int)playersSlider.value); }
public void Hide() { notificationPanel.Hide(TransitionType.Fade); }