コード例 #1
0
ファイル: CharacterBase.cs プロジェクト: DrDoak/TourismGame
    public void DrawAllUIBars(GUIManager guiManager)
    {
        if (m_uiBars == null)
        {
            m_uiBars = new List <UIBarInfo>();
        }
        List <UIBarInfo> m_newList = new List <UIBarInfo>();

        foreach (UIBarInfo uib in m_uiBars)
        {
            guiManager.AddUIBar(uib);
        }
        if (GetComponent <InventoryContainer>() != null)
        {
            Debug.Log("Adding a inventory container preview");
            foreach (Vector2 v in GetComponent <InventoryContainer>().eqpSlotInfo.Keys)
            {
                Debug.Log("Adding container vector: " + v);
                guiManager.AddEquipmentPreviewIcon(GetComponent <InventoryContainer>(), v);
            }
        }
    }