private void GenerateGovernmentInfo(GameObject resultDisplay, string key) { Government government = Game.DB.Governments[key]; resultDisplay.name = government.ID; resultDisplay.GetComponent <Button>().onClick.AddListener(delegate { DatapadInformation.text = government.DatapadDescription(); }); resultDisplay.GetComponentInChildren <Text>().text = government.Name; }