Пример #1
0
    private void Awake()
    {
        GameObject[] objs = GameObject.FindGameObjectsWithTag("wholeCanvas");
        lanVersion = GameObject.FindGameObjectWithTag("wholeCanvas").GetComponent <WholeMenu>();
        version    = lanVersion.getVersion();
        Debug.Log("version of language: " + version);

        if (version == 1)
        {
            escMenu.SetENGTexts();
            escOptionsMenu.SetENGTexts();
        }
        else
        {
            escMenu.SetPLTexts();
            escOptionsMenu.SetPLTexts();
        }
    }
Пример #2
0
 public void EnglishButton(Language language)
 {
     language.version = 1;
     SetENGTexts();
     escMenu.SetENGTexts();
 }