Пример #1
0
    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);
        }
    }
Пример #2
0
    private NeedStateInfo GetNeedStateInfoFromDisplayItem(NeedDisplayItem item)
    {
        ENeedType associatedNeed = item.GetAssociatedNeed();

        return(m_currentCharacter.GetNeedsUpdater().GetNeedStateInfo(associatedNeed));
    }
Пример #3
0
    private void CreateNewNeedDisplayItem()
    {
        NeedDisplayItem newItem = Instantiate(m_needsDisplayItems[0], m_listContainer);

        m_needsDisplayItems.Add(newItem);
    }