protected override void Update() { base.Update(); if (this.m_Infos.Count == 0) { return; } HUDBigInfoData hudbigInfoData = this.m_Infos[0]; this.m_Header.text = hudbigInfoData.m_Header; this.m_Text.text = hudbigInfoData.m_Text; if (Time.time - HUDBigInfoData.s_Duration > hudbigInfoData.m_ShowTime) { if (this.m_Infos.Count > 1) { this.m_Infos[1].m_ShowTime = Time.time; } this.m_Infos.RemoveAt(0); } }
public void AddInfo(HUDBigInfoData data) { this.m_Infos.Add(data); }