public void InvestigatorSelected(int index) { List <Investigator> investigators = owner.currentLocation.investigatorsOnLocation; for (int i = 0; i < investigators.Count; i++) { if (i == index) { improvingInvestigator = investigators[i]; } } if (improvingInvestigator == null) { Debug.LogError("Error selecting investigator"); } else { List <MultipleOptionMenuObject> options = new List <MultipleOptionMenuObject>(); foreach (TestStat stat in improvingInvestigator.ImprovableSkills()) { options.Add(new MultipleOptionMenuObject(MultipleOptionType.Stat, stat)); } GameManager.SingleInstance.App.Controller.multipleOptionController.StartMultipleOption(options, "Select a Skill to Improve", SkillSelected); } }