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