Пример #1
0
 void Awake()
 {
     CanvasGroupUtil.InstantHide(Canvas_MainMenu);
     CanvasGroupUtil.InstantHide(Canvas_OptionsMenu);
     CanvasGroupUtil.InstantHide(Canvas_AboutMenu);
     CanvasGroupUtil.InstantHide(Canvas_LoadingScreen);
     StartCoroutine(ShowSplashScreen());
 }
Пример #2
0
        IEnumerator ShowSplashScreen()
        {
            yield return(new WaitForSeconds(0.2f));

            StartCoroutine(CanvasGroupUtil.CanvasFadeIn(Canvas_PressAnyKey, TransitionDuration));
            yield return(new WaitForSeconds(TransitionDuration));

            inSplash = true;
        }
Пример #3
0
 public virtual void SetIsOpen(bool isOpen)
 {
     this.isOpen = isOpen;
     if (isOpen)
     {
         CanvasGroupUtil.InstantReveal(canvasGroup);
     }
     else
     {
         CanvasGroupUtil.InstantHide(canvasGroup);
     }
 }
 public override void SetIsOpen(bool isOpen)
 {
     this.isOpen = isOpen;
     if (isOpen)
     {
         CanvasGroupUtil.InstantReveal(canvasGroup);
         RefreshPanel();
     }
     else
     {
         CanvasGroupUtil.InstantHide(canvasGroup);
     }
 }
        public override void SetIsOpen(bool isOpen)
        {
            this.isOpen = isOpen;
            if (isOpen)
            {
                CanvasGroupUtil.InstantReveal(canvasGroup);
                RefreshInventoryDisplay();
            }
            else
            {
                CanvasGroupUtil.InstantHide(canvasGroup);
            }

            foreach (var slot in Slots)
            {
                slot.IsVisibleOnScreen = isOpen;
            }
        }
Пример #6
0
 public void MainToLoading()
 {
     PlaySfx();
     StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_MainMenu, Canvas_LoadingScreen, TransitionDuration));
 }
Пример #7
0
 public void AboutToMain()
 {
     PlaySfx();
     StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_AboutMenu, Canvas_MainMenu, TransitionDuration));
 }
Пример #8
0
 public void MainToOptions()
 {
     PlaySfx();
     StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_MainMenu, Canvas_OptionsMenu, TransitionDuration));
 }
Пример #9
0
 public void SplashToMain()
 {
     PlaySfx();
     StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_PressAnyKey, Canvas_MainMenu, TransitionDuration));
 }
Пример #10
0
 public void OptionsToPauseMain()
 {
     CanvasGroupUtil.InstantReveal(canvas_Pause);
     CanvasGroupUtil.InstantHide(canvas_Options);
 }
Пример #11
0
 public void UnPause()
 {
     CanvasGroupUtil.InstantHide(canvas_Pause);
     background.SetActive(false);
 }
Пример #12
0
 public void Pause()
 {
     CanvasGroupUtil.InstantReveal(canvas_Pause);
     background.SetActive(true);
 }
Пример #13
0
 void Awake()
 {
     CanvasGroupUtil.InstantHide(canvas_Pause);
     CanvasGroupUtil.InstantHide(canvas_Options);
     background.SetActive(false);
 }