private void TurnOnLostConnectionNotification() { StopAllCoroutines(); StartCoroutine(Twiner.ImageSmoothAlphaChange(0, 0.65f, Background)); LostConnectionPanel.GetComponent <RectTransform>().localScale = Vector2.zero; StartCoroutine(Twiner.PanelSmoothScaleChange(0, 1, LostConnectionPanel)); }
public void TurnOnNotificationPanel() { if (!_isPanelActive) { _isPanelActive = true; StartCoroutine(Twiner.ImageSmoothAlphaChange(0, 0.65f, Background)); Panel.GetComponent <RectTransform>().localScale = Vector2.zero; StartCoroutine(Twiner.PanelSmoothScaleChange(0, 1, Panel)); StartCoroutine(FlickConnectionIcon()); StartCoroutine(MainMenuLoadDelay()); } }
public void ShowPanel(GameObject panel) { StartCoroutine(Twiner.PanelSmoothScaleChange(0, 1, panel)); if (_currentOpenedPanel != null) { StartCoroutine(Twiner.PanelSmoothScaleChange(1, 0, _currentOpenedPanel)); } else { StartCoroutine(Twiner.ImageSmoothAlphaChange(0, 0.65f, Background)); } _currentOpenedPanel = panel; }
public void CloseIAPPanel() { StartCoroutine(Twiner.PanelSmoothScaleChange(1, 0, _currentOpenedPanel)); StartCoroutine(Twiner.ImageSmoothAlphaChange(0.65f, 0, Background)); _currentOpenedPanel = null; }
public void TurnOffLostConnectionNotification() { StopAllCoroutines(); StartCoroutine(Twiner.ImageSmoothAlphaChange(0.65f, 0, Background)); StartCoroutine(Twiner.PanelSmoothScaleChange(1, 0, LostConnectionPanel)); }