private void createBars() { this.bars = new List <ValueBar>(); foreach (Item item in this.world.economy.getUnlockedItems()) { // Add a bar, this ore has been unlocked ValueBar bar = GameObject.Instantiate(this._valueBarPrefab, this._barParent).GetComponent <ValueBar>(); bar.setItem(item); this.bars.Add(bar); } }