public void Build(GuessableWord word)
 {
     currentGuessableWord = word;
     Initialize();
     SplitWords();
     SplitGarbageValues();
     BuildColumns();
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        Initialize();
        AllButtonsList.Clear();
        WordsButtons.Clear();

        canvasManager = GameObject.FindObjectOfType <CanvasManager>();
        screenBuilder = GameObject.FindObjectOfType <ScreenBuilder>();
        int randomIndex = Random.Range(0, Words.Length);

        print(Words.Length);
        print(randomIndex);
        currentWord = Words[randomIndex];
        screenBuilder.Build(currentWord);
    }