public void SelectedPuzzle()
    {
        selectedPuzzle = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;

        selectLevel.SetSelectedPuzzle(selectedPuzzle);
        StartCoroutine(ShowPuzzleLevelSelectMenu());
    }
示例#2
0
	public void SelectedPuzzle () {
		starsLocker.DeactivateStars ();
		selectedPuzzle = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
		puzzleGameManager.SetSelectedPuzzle (selectedPuzzle);
		levelLocker.CheckWhichLevelsAreUnlocked (selectedPuzzle);
		selectLevel.SetSelectedPuzzle (selectedPuzzle);

		StartCoroutine (ShowPuzzleLevelSelectMenu ());
	}
    public void SelectedPuzzle()
    {
        // capture the name of the button that is clicked on
        selectedPuzzle = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;

        // inform puzzle game manager which PUZZLE was selected
        puzzleGameManager.SetSelectedPuzzle(selectedPuzzle);

        // pass the name to set the selected Puzzle
        selectLevel.SetSelectedPuzzle(selectedPuzzle);

        StartCoroutine(ShowPuzzleLevelSelectMenu());
    }