Beispiel #1
0
    private void TurnOnLostConnectionNotification()
    {
        StopAllCoroutines();
        StartCoroutine(Twiner.ImageSmoothAlphaChange(0, 0.65f, Background));

        LostConnectionPanel.GetComponent <RectTransform>().localScale = Vector2.zero;
        StartCoroutine(Twiner.PanelSmoothScaleChange(0, 1, LostConnectionPanel));
    }
Beispiel #2
0
 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());
     }
 }
Beispiel #3
0
    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;
    }
Beispiel #4
0
 public void CloseIAPPanel()
 {
     StartCoroutine(Twiner.PanelSmoothScaleChange(1, 0, _currentOpenedPanel));
     StartCoroutine(Twiner.ImageSmoothAlphaChange(0.65f, 0, Background));
     _currentOpenedPanel = null;
 }
Beispiel #5
0
 public void TurnOffLostConnectionNotification()
 {
     StopAllCoroutines();
     StartCoroutine(Twiner.ImageSmoothAlphaChange(0.65f, 0, Background));
     StartCoroutine(Twiner.PanelSmoothScaleChange(1, 0, LostConnectionPanel));
 }