Beispiel #1
0
    void RestartModule()
    {
        submiting    = false;
        keyword.text = "";
        if (keywordLoop != null)
        {
            StopCoroutine(keywordLoop);
        }

        screenObj.transform.GetComponentInChildren <Renderer>().material = screenColors[0];

        keyNumber = rnd.Range(0, 40) + 30;

        Debug.LogFormat("[Double Expert #{0}] ------------Instruction Sets------------", moduleId);

        sets[0] = new KeyNumberSet(keyNumber);

        Debug.LogFormat("[Double Expert #{0}] Instruction set 1 reads: \"{1}\"", moduleId, sets[0].GetText());

        for (int i = 1; i < sets.Length; i++)
        {
            Debug.LogFormat("[Double Expert #{0}] Instruction set {1} reads: \"{2}\"", moduleId, i + 1, sets[i].GetText());
        }

        currentInstructionSet = 0;
        latestInstructionSet  = 0;
        appliedRules          = new List <char>();
        setDisplay            = StartCoroutine(DisplaySet(currentInstructionSet));
    }
Beispiel #2
0
    void GenerateInstructionSets()
    {
        keyNumber = rnd.Range(0, 40) + 30;

        sets = new InstructionSet[7];

        Debug.LogFormat("[Double Expert #{0}] ------------Instruction Sets------------", moduleId);

        sets[0] = new KeyNumberSet(keyNumber);

        Debug.LogFormat("[Double Expert #{0}] Instruction set 1 reads: \"{1}\"", moduleId, sets[0].GetText());

        for (int i = 1; i < sets.Length; i++)
        {
            sets[i] = new InstructionSet(bomb, qi);
            if (i == sets.Length - 1)
            {
                sets[i].SetFinalText();
            }
            Debug.LogFormat("[Double Expert #{0}] Instruction set {1} reads: \"{2}\"", moduleId, i + 1, sets[i].GetText());
        }
    }