public void UpdateGoldList() { _index = 0; _goldList = _listOfGold.GetListOfGold(); _goldCollector.UpdateGoldNums(_goldList.Count); _currentGold = _goldList[_index]; }
public void SwitchNextGold() { _index++; if (_index < _goldList.Count) { _currentGold = _goldList[_index]; } }
public void PlaceGold(Transform goldIngot, GoldModel goldModel) { goldIngot.parent = transform; _goldTransformList.Add(goldIngot); goldModel.StopFalling(2f); }