public void ShowDialog() { if (transform.parent.GetComponent <Canvas>() == null && transform.parent.parent != null) { transform.SetParent(transform.parent.parent); } transform.SetAsLastSibling(); versionLabel.GetComponent <Text>().text = "v" + typeof(ModSettingsScreen).Assembly.GetName().Version.ToString(); // Buttons cancelButton.OnClick += OnClickCancel; confirmButton.OnClick += OnClickApply; githubButton.OnClick += OnClickGithub; steamButton.OnClick += OnClickSteam; UIHelper.AddSimpleToolTip(githubButton.gameObject, "Open Asphalt Tiles on Github"); UIHelper.AddSimpleToolTip(steamButton.gameObject, "Open Asphalt Tiles on Steam"); gameObject.SetActive(true); }