private int _pointer; // Pointer to look at the current UIItemInfo // Start is called before the first frame update void Start() { Instance = this; // Initializing the list of buy items _buyItemList = new List <UpgradableItem>(); // Loop for storing all the buyable upgradable items for (int i = 0; i < BuyItemTransforms.childCount; i++) { // Adding the buyable upgradable item _buyItemList.Add(BuyItemTransforms.GetChild(i).GetComponent <UpgradableItem>()); } }
void Awake() { instance = this; }