private void OnRestartClick() { Time.timeScale = 1; UIMgr.Instance.DestroyUI(UIDef.GetLevelName(mCurrentLevel)); UIMgr.Instance.ShowUI(UIDef.GetLevelName(mCurrentLevel), typeof(LevelMgr), this, mCurrentLevel); UIMgr.Instance.DestroyUI(UIDef.DieUI); }
private void OnMenuClick() { MusicManager.Instance.StopBGM(); UIMgr.Instance.DestroyUI(UIDef.GetLevelName(mCurrentLevel)); UIMgr.Instance.DestroyUI(UIDef.DieUI); UIMgr.Instance.DestroyUI(UIDef.WinUI); UIMgr.Instance.ShowUI(UIDef.SelectLevelUI, typeof(SelectLevelCtrl), this); }
/// <summary> /// Level seleccionado /// </summary> public void SelectLevel() { if (Imagelock.gameObject.activeSelf) { return; } AppMgr.Instance.HeroPos = Vector3.zero; UIMgr.Instance.ShowUI(UIDef.GetLevelName(level), typeof(LevelMgr), SelectLevelCtrl.Instance, level); }
private void OnNextClick() { MusicManager.Instance.StopBGM(); UIMgr.Instance.DestroyUI(UIDef.GetLevelName(mCurrentLevel)); UIMgr.Instance.DestroyUI(UIDef.DieUI); UIMgr.Instance.DestroyUI(UIDef.WinUI); if (mCurrentLevel != 2) { UIMgr.Instance.ShowUI(UIDef.GetLevelName(mCurrentLevel + 1), typeof(LevelMgr), this, mCurrentLevel + 1); } else { UIMgr.Instance.ShowUI(UIDef.SelectLevelUI, typeof(SelectLevelCtrl), this); } }