Exemple #1
0
    public void SaveSettings()
    {
        List <string> list = new List <string>();
        bool          test = true;

        for (int i = 0; i < words.Length; i++)
        {
            if (words[i].text == "")
            {
                test = false;
            }
            else
            {
                list.Add(words[i].text);
            }
        }
        if (test)
        {
            data.updateData(list);
            playBtn.interactable = true;
            playBtn.onClick.AddListener(BeginGame);
            CloseSettings();
        }
    }