Example #1
0
    // Use this for initialization
    void Start()
    {
        keyIndex = 0;                          //key index only increments for correct answers
        maxKey   = emptyKeyAnswerBlocks.Count; //the code is as many digits as there are correct code display blocks

        correctAnswer = new List <int>();

        //create your code for the correct answer here
        correctAnswer.Add(1);
        correctAnswer.Add(3);
        correctAnswer.Add(5);
        correctAnswer.Add(7);
        correctAnswer.Add(9);

        currentAnswer = new List <int>();

        toggleWindowScript = GetComponent <BNG_HideShowWindow>();
    }
	// Use this for initialization
	void Start () {

        keyIndex = 0; //key index only increments for correct answers
        maxKey = emptyKeyAnswerBlocks.Count; //the code is as many digits as there are correct code display blocks

        correctAnswer = new List<int>();

        //create your code for the correct answer here
        correctAnswer.Add(1);
        correctAnswer.Add(3);
        correctAnswer.Add(5);
        correctAnswer.Add(7);
        correctAnswer.Add(9);

        currentAnswer = new List<int>();

        toggleWindowScript = GetComponent<BNG_HideShowWindow>();

	}