コード例 #1
0
ファイル: IconScript.cs プロジェクト: Ckpyt/ColonyRuler-code
    /// <summary>
    /// Numbers outputs
    /// </summary>
    void PrintTextValue()
    {
        m_txtCount.text = m_thisItem.GetCountString();
        GameAbstractItem itm = m_thisItem as GameAbstractItem;

        if (itm != null && m_txtCount != null)
        {
            m_workers.text     = itm.m_workers.ToString();
            m_productText.text = m_thisItem.GetProductivityString();
            if (m_thisItem.m_isItDestroyable)
            {
                m_damagedText.text = ((Items)m_thisItem).GetDamagedString();
            }
        }
    }