Exemple #1
0
	public void BackToPuzzleLevelSelectMenu () {

		anims = puzzleGameManager.ResetGameplay ();

		levelLocker.CheckWhichLevelsAreUnlocked (selectedPuzzle);
		
		switch (puzzleLevel) {

		case 0:
			StartCoroutine (LoadPuzzleLevelSelectMenu (puzzleGamePanel1, puzzleGamePanelAnim1));
			break;
		case 1:
			StartCoroutine (LoadPuzzleLevelSelectMenu (puzzleGamePanel2, puzzleGamePanelAnim2));
			break;
		case 2:
			StartCoroutine (LoadPuzzleLevelSelectMenu (puzzleGamePanel3, puzzleGamePanelAnim3));
			break;
		case 3:
			StartCoroutine (LoadPuzzleLevelSelectMenu (puzzleGamePanel4, puzzleGamePanelAnim4));
			break;
		case 4:
			StartCoroutine (LoadPuzzleLevelSelectMenu (puzzleGamePanel5, puzzleGamePanelAnim5));
			break;

		}
		
	}
Exemple #2
0
    public void SelectedPair()
    {
        starsLocker.DeactivateStars();

        //Get the name of the current object where touching on the screen
        selectedPair = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;

        pairGameManager.SetSelectedPair(selectedPair);

        levelLocker.CheckWhichLevelsAreUnlocked(selectedPair);

        selectLevel.SetSelectedPair(selectedPair);

        pairButtonsBacksideImagesCounter = 0;
        foreach (string btnMenuName in pairMenuButtonsName)
        {
            if (selectedPair != btnMenuName)
            {
                pairButtonsBacksideImagesCounter = pairButtonsBacksideImagesCounter + 1;
            }
            else
            {
                break;
            }
        }

        layoutPairButtons.SetSelectedPair(pairButtonsBacksideImages[pairButtonsBacksideImagesCounter]);

        StartCoroutine(ShowPairLevelPanel());
    }
Exemple #3
0
	public void SelectedPuzzle () {
		starsLocker.DeactivateStars ();
		selectedPuzzle = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
		puzzleGameManager.SetSelectedPuzzle (selectedPuzzle);
		levelLocker.CheckWhichLevelsAreUnlocked (selectedPuzzle);
		selectLevel.SetSelectedPuzzle (selectedPuzzle);

		StartCoroutine (ShowPuzzleLevelSelectMenu ());
	}
Exemple #4
0
 private void Start()
 {
     starsLocker.DeactivateStars();
     levelLocker.CheckWhichLevelsAreUnlocked();
 }
    public void BackToPairLevelPanel()
    {
        anims = pairGameManager.ResetGameplay();

        levelLocker.CheckWhichLevelsAreUnlocked(selectedPair);

        switch (pairLevel)
        {
        case 1:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel1, pairGamePanelAnim1));
            break;

        case 2:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel2, pairGamePanelAnim2));
            break;

        case 3:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel3, pairGamePanelAnim3));
            break;

        case 4:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel4, pairGamePanelAnim4));
            break;

        case 5:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel5, pairGamePanelAnim5));
            break;

        case 6:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel6, pairGamePanelAnim6));
            break;

        case 7:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel7, pairGamePanelAnim7));
            break;

        case 8:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel8, pairGamePanelAnim8));
            break;

        case 9:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel9, pairGamePanelAnim9));
            break;

        case 10:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel10, pairGamePanelAnim10));
            break;

        case 11:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel11, pairGamePanelAnim11));
            break;

        case 12:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel12, pairGamePanelAnim12));
            break;

        case 13:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel13, pairGamePanelAnim13));
            break;

        case 14:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel14, pairGamePanelAnim14));
            break;

        case 15:
            StartCoroutine(LoadPairLevelPanel(pairGamePanel15, pairGamePanelAnim15));
            break;
        }
    }