Esempio n. 1
0
 void Start()
 {
     bot          = GetComponent <GameBot>();
     VucNotePath  = Application.dataPath + @"/DotaVocabulary.txt";
     KeshNotePath = Application.dataPath + @"/DotaKeshPastWords.txt";
     menegrerScr  = GetComponent <GameMenegrerScr>();
     CreateFirstLetter();
     wordsWasWritten.Add("***");
     fm = GetComponent <FailMeneger>();
 }
Esempio n. 2
0
    void Start()
    {
        constructor  = GetComponent <WordConstructor>();
        gameMenegrer = GetComponent <GameMenegrerScr>();
        vucabulary   = new List <string>();
        //vucabulary = File.ReadAllLines(wdc.VucNotePath));
        bool isCorect = true;

        foreach (string input in File.ReadAllLines(constructor.VucNotePath))
        {
            if (input == "/")
            {
                isCorect = true; continue;
            }
            if (isCorect)
            {
                vucabulary.Add(input);
                isCorect = false;
            }
        }
        fm = GetComponent <FailMeneger>();
    }