void addListener(Button b, string value) { if (MenuUI != null) { b.onClick.AddListener(() => MenuUI.AreYouSureLoad(value)); } else { b.onClick.AddListener(() => SetSaveName(value)); } }