IEnumerator _Unpause() { objButtonBar.SetActive(false); menuCurrent.Exit(); menuCurrent = null; Time.timeScale = 1; yield return null; btnPause.SetActive(true); }
IEnumerator _Pause() { Time.timeScale = 0; yield return null; btnPause.SetActive(false); objButtonBar.SetActive(true); yield return AdagioHelper.WaitForRealSeconds(0.5f); menuPause.Enter(); menuCurrent = menuPause; }
public void TransitionToMenu(AdagioMenu menu) { menuCurrent.Exit(); menu.Enter(); menuCurrent = menu; }
IEnumerator _LogoSequence() { objLogo.SetActive(true); yield return AdagioHelper.WaitForRealSeconds(1f); objButtonBar.SetActive(true); yield return AdagioHelper.WaitForRealSeconds(0.5f); menuTitle.Enter(); menuCurrent = menuTitle; }