Exemplo n.º 1
0
 private void HandleLevelDeSelected()
 {
     levelSelected.SelectModePanel(false);
     levelSelected = null;
     selectingMode = false;
     EnableAllButtons(true);
 }
Exemplo n.º 2
0
        public override void Enable()
        {
            base.Enable();

            OnModeButtonPressed     += HandleModeSelected;
            OnLevelButtonPressed    += HandleLevelSelected;
            OnLevelButtonDeselected += HandleLevelDeSelected;

            levelSelected = null;
            selectingMode = false;
            EnableAllButtons(true);

            SetupLevelsButtons();
        }
Exemplo n.º 3
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);
            }
        }
Exemplo n.º 4
0
 public void Init(UI_SelectLevelButton _uI_SelectLevelButton)
 {
     uI_SelectLevelButton = _uI_SelectLevelButton;
 }