Пример #1
0
 private void HandleLevelDeSelected()
 {
     levelSelected.SelectModePanel(false);
     levelSelected = null;
     selectingMode = false;
     EnableAllButtons(true);
 }
Пример #2
0
        private void HandleLevelSelected(UI_SelectLevelButton _levelSelected)
        {
            levelSelected = _levelSelected;
            LevelScriptable levelScriptable = _levelSelected.GetLevelScriptable();

            if (levelScriptable.TutorialLevel)
            {
                if (OnLevelSelected != null)
                {
                    OnLevelSelected(levelSelected.GetLevelScriptable(), false);
                }
            }
            else
            {
                EnableAllButtons(false);
                selectingMode = true;
                levelSelected.SelectModePanel(true);
            }
        }