示例#1
0
    //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);
    }
示例#2
0
    //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();
    }
示例#3
0
 public static void HireThug(DS_Thug thug)
 {
     ThugToHire(thug);
 }
示例#4
0
 void PopulatePanelValues(DS_Thug panelThug)
 {
 }