Beispiel #1
0
        public void Awake()
        {
            instance    = this;
            thisObj     = gameObject;
            rectT       = thisObj.GetComponent <RectTransform>();
            canvasGroup = thisObj.GetComponent <CanvasGroup>();
            if (canvasGroup == null)
            {
                canvasGroup = thisObj.AddComponent <CanvasGroup>();
            }

            if (demoMenu)
            {
                canvasGroup.alpha = 0;
            }
        }
Beispiel #2
0
 IEnumerator _OnClosePerkMenu()
 {
     FadeBlur(uiBlurEffect, 2, 0);
     UIPerkMenu.Hide();
     yield return(StartCoroutine(WaitForRealSeconds(0.25f)));
 }
Beispiel #3
0
 public void _OnPerkMenu()
 {
     FadeBlur(uiBlurEffect, 0, 2);
     UIPerkMenu.Show();
 }