예제 #1
0
 public override bool Close()
 {
     if (isFading)
     {
         return(false);
     }
     else
     {
         buttonSelector.ForceDeSelect(); //원래 포스 셀렉트였는ㄴ데 일단 바꿔봤음...왜 셀렉트였던거지?
         if (onMainMenu)
         {
             uiMainMenu.Open();
         }
         else if (onPause)
         {
             uiPause.OpenMenu();
         }
         StartCoroutine(ProcessFadeAlpha_Close());
         return(true);
     }
 }
예제 #2
0
    public override bool Close()
    {
        if (isFading)
        {
            return(false);
        }
        else
        {
            buttonSelector.StaySelect();

            if (onMainMenu)
            {
                if (uiMainMenu == null)
                {
                    UIBase tempUI;
                    UIManager.Instance.uiDicitonary.TryGetValue(eUItype.MAIN, out tempUI);
                    uiMainMenu = tempUI as UIMainMenu;
                }
                uiMainMenu.Open();
            }
            else if (onPause)
            {
                if (uiPause == null)
                {
                    UIBase tempUI;
                    UIManager.Instance.uiDicitonary.TryGetValue(eUItype.PAUSE, out tempUI);
                    uiPause = tempUI as UIPause;
                }
                uiPause.OpenMenu();
            }


            StartCoroutine(ProcessFadeAlpha_Close());
            return(true);
        }
    }