示例#1
0
 // Use this for initialization
 void Start()
 {
     Progression.m_instance = m_progression;
     m_progression.Init();
     m_instance           = this;
     m_allTrends          = Trend.GenerateTrends();
     m_player             = FindObjectOfType <Player>();
     m_currentTrend       = m_allTrends.Find(x => x.Name == eTrend.ACTIVE);
     t_TrendSet.sprite    = m_currentTrend.TX_set;
     t_TrendComment1.text = m_currentTrend.Description;
     foreach (var item in t_TrendComment2)
     {
         item.sprite = m_currentTrend.TX_attribute;
     }
     s_Trend.text            = m_currentTrend.Name.ToString();
     s_TrendDescription.text = m_currentTrend.Description;
 }