コード例 #1
0
 void Awake()
 {
     CanvasGroupUtil.InstantHide(Canvas_MainMenu);
     CanvasGroupUtil.InstantHide(Canvas_OptionsMenu);
     CanvasGroupUtil.InstantHide(Canvas_AboutMenu);
     CanvasGroupUtil.InstantHide(Canvas_LoadingScreen);
     StartCoroutine(ShowSplashScreen());
 }
コード例 #2
0
 public virtual void SetIsOpen(bool isOpen)
 {
     this.isOpen = isOpen;
     if (isOpen)
     {
         CanvasGroupUtil.InstantReveal(canvasGroup);
     }
     else
     {
         CanvasGroupUtil.InstantHide(canvasGroup);
     }
 }
コード例 #3
0
 public override void SetIsOpen(bool isOpen)
 {
     this.isOpen = isOpen;
     if (isOpen)
     {
         CanvasGroupUtil.InstantReveal(canvasGroup);
         RefreshPanel();
     }
     else
     {
         CanvasGroupUtil.InstantHide(canvasGroup);
     }
 }
コード例 #4
0
        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;
            }
        }
コード例 #5
0
 public void OptionsToPauseMain()
 {
     CanvasGroupUtil.InstantReveal(canvas_Pause);
     CanvasGroupUtil.InstantHide(canvas_Options);
 }
コード例 #6
0
 public void UnPause()
 {
     CanvasGroupUtil.InstantHide(canvas_Pause);
     background.SetActive(false);
 }
コード例 #7
0
 void Awake()
 {
     CanvasGroupUtil.InstantHide(canvas_Pause);
     CanvasGroupUtil.InstantHide(canvas_Options);
     background.SetActive(false);
 }