Esempio n. 1
0
//	public void PlayPuzzle (int puzzle)
//	{
//		m_puzzlePrevious = puzzleToPlay;
//		puzzleToPlay = puzzle;
//
//		if (puzzleToPlay > puzzles.Length)
//			puzzleToPlay = 1;
//
//		IEnumerable<Puzzle> previousQuery =
//			from p in puzzles
//			where (p.whatIsPuzzle == m_puzzlePrevious)
//			select p;
//
//		IEnumerable<Puzzle> playQuery =
//			from p in puzzles
//			where (p.whatIsPuzzle == puzzleToPlay)
//			select p;
//
//		foreach (Puzzle p in previousQuery)
//			p.gameObject.SetActive(false);
//
//		foreach (Puzzle p in playQuery)
//			p.gameObject.SetActive(true);
//	}

    public void NextPuzzle()
    {
        if (++puzzleToPlay > PuzzleCache.current.Length)
        {
            puzzleToPlay = 1;
            m_StartScript.GoThanks();
        }
        else
        {
            m_StartScript.GoLevel(puzzleToPlay);
        }
    }
Esempio n. 2
0
 public void GoLevel()
 {
     startScript.GoLevel(numLevel);
 }