示例#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 PolskiButton(Language language)
 {
     language.version = 2;
     SetPLTexts();
     escMenu.SetPLTexts();
 }