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 EnglishButton(Language language) { language.version = 1; SetENGTexts(); escMenu.SetENGTexts(); }