Ejemplo n.º 1
0
 public void _PauseGame()
 {
     Debug.Log("_PauseGame");
     FadeBlur(uiBlurEffect, 0, 2);
     //CameraControl.TurnBlurOn();
     UIPauseMenu.Show();
 }
Ejemplo n.º 2
0
 IEnumerator _ResumeGame()
 {
     Debug.Log("_ResumeGame");
     FadeBlur(uiBlurEffect, 2, 0);
     //CameraControl.TurnBlurOff();
     UIPauseMenu.Hide();
     yield return(StartCoroutine(WaitForRealSeconds(0.25f)));
 }
Ejemplo n.º 3
0
        public void Awake()
        {
            instance    = this;
            thisObj     = gameObject;
            rectT       = thisObj.GetComponent <RectTransform>();
            canvasGroup = thisObj.GetComponent <CanvasGroup>();
            if (canvasGroup == null)
            {
                canvasGroup = thisObj.AddComponent <CanvasGroup>();
            }

            canvasGroup.alpha          = 0;
            canvasGroup.interactable   = false;
            canvasGroup.blocksRaycasts = false;

            //thisObj.SetActive(false);
            rectT.anchoredPosition = new Vector3(0, 0, 0);
        }