private void UpdateNeedsDisplay() { if (m_currentCharacter == null) { return; } for (int i = 0; i < m_needsDisplayItems.Count; ++i) { NeedDisplayItem currentItem = m_needsDisplayItems[i]; NeedStateInfo needStateInfo = GetNeedStateInfoFromDisplayItem(currentItem); currentItem.UpdateGauge(needStateInfo); } }
private NeedStateInfo GetNeedStateInfoFromDisplayItem(NeedDisplayItem item) { ENeedType associatedNeed = item.GetAssociatedNeed(); return(m_currentCharacter.GetNeedsUpdater().GetNeedStateInfo(associatedNeed)); }
private void CreateNewNeedDisplayItem() { NeedDisplayItem newItem = Instantiate(m_needsDisplayItems[0], m_listContainer); m_needsDisplayItems.Add(newItem); }