Exemple #1
0
 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);
 }
Exemple #2
0
    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);
    }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
    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);
        }
    }