Наследование: AdagioUIElement
Пример #1
0
    IEnumerator _Unpause()
    {
        objButtonBar.SetActive(false);
        menuCurrent.Exit();
        menuCurrent = null;

        Time.timeScale = 1;
        yield return null;
        btnPause.SetActive(true);
    }
Пример #2
0
    IEnumerator _Pause()
    {
        Time.timeScale = 0;
        yield return null;
        btnPause.SetActive(false);

        objButtonBar.SetActive(true);

        yield return AdagioHelper.WaitForRealSeconds(0.5f);

        menuPause.Enter();
        menuCurrent = menuPause;
    }
Пример #3
0
 public void TransitionToMenu(AdagioMenu menu)
 {
     menuCurrent.Exit();
     menu.Enter();
     menuCurrent = menu;
 }
Пример #4
0
    IEnumerator _LogoSequence()
    {
        objLogo.SetActive(true);

        yield return AdagioHelper.WaitForRealSeconds(1f);

        objButtonBar.SetActive(true);

        yield return AdagioHelper.WaitForRealSeconds(0.5f);

        menuTitle.Enter();
        menuCurrent = menuTitle;
    }