void Awake() { CanvasGroupUtil.InstantHide(Canvas_MainMenu); CanvasGroupUtil.InstantHide(Canvas_OptionsMenu); CanvasGroupUtil.InstantHide(Canvas_AboutMenu); CanvasGroupUtil.InstantHide(Canvas_LoadingScreen); StartCoroutine(ShowSplashScreen()); }
IEnumerator ShowSplashScreen() { yield return(new WaitForSeconds(0.2f)); StartCoroutine(CanvasGroupUtil.CanvasFadeIn(Canvas_PressAnyKey, TransitionDuration)); yield return(new WaitForSeconds(TransitionDuration)); inSplash = true; }
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; } }
public void MainToLoading() { PlaySfx(); StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_MainMenu, Canvas_LoadingScreen, TransitionDuration)); }
public void AboutToMain() { PlaySfx(); StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_AboutMenu, Canvas_MainMenu, TransitionDuration)); }
public void MainToOptions() { PlaySfx(); StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_MainMenu, Canvas_OptionsMenu, TransitionDuration)); }
public void SplashToMain() { PlaySfx(); StartCoroutine(CanvasGroupUtil.CanvasesCrossfade(Canvas_PressAnyKey, Canvas_MainMenu, TransitionDuration)); }
public void OptionsToPauseMain() { CanvasGroupUtil.InstantReveal(canvas_Pause); CanvasGroupUtil.InstantHide(canvas_Options); }
public void UnPause() { CanvasGroupUtil.InstantHide(canvas_Pause); background.SetActive(false); }
public void Pause() { CanvasGroupUtil.InstantReveal(canvas_Pause); background.SetActive(true); }
void Awake() { CanvasGroupUtil.InstantHide(canvas_Pause); CanvasGroupUtil.InstantHide(canvas_Options); background.SetActive(false); }