//Instantiates new hired thug panel from prefab void GenerateHiredThugPanel(DS_Thug panelThug) { //Sets the panel's parent to be the group panel UI object GameObject newHiredThugPanel = Instantiate(hiredThugPanelPrefab) as GameObject; newHiredThugPanel.transform.SetParent(groupPanel.transform, false); //Adds the panel game object to the thugPanels list thugPanels.Add(newHiredThugPanel); }
//Receives a hired thug when a thug applicant panel hire button is pressed void HireThug(DS_Thug thugToHire) { hiredThugs.Add(thugToHire.thugName, thugToHire); int randomThugElement = randomThugs.IndexOf(thugToHire); randomThugs.RemoveAt(randomThugElement); randomThugs.Insert(randomThugElement, new DS_Thug()); runningThugCount++; randomThugs [randomThugElement].thugName = runningThugCount.ToString(); }
public static void HireThug(DS_Thug thug) { ThugToHire(thug); }
void PopulatePanelValues(DS_Thug panelThug) { }