public void SpawnItemSelections() { foreach (Item item in Player.instance.ItemList) { TBC_SelectionButton selectionButton = Instantiate(selectionButtonPrefab, selectionButtonParentTransform).GetComponent <TBC_SelectionButton>(); selectionButton.SetupUI(item); } }
public void SpawnAttackSelections() { ClearSelectionButtons(); foreach (TBC_Attack attack in TBC_GameManager.instance.ActiveTurnEntity.attackList) { TBC_SelectionButton selectionButton = Instantiate(selectionButtonPrefab, selectionButtonParentTransform).GetComponent <TBC_SelectionButton>(); selectionButton.SetupUI(attack); } }