コード例 #1
0
 protected override void OnTick()
 {
     m_Game.PlayerMessage("Time left: {0:0}:{1:00}:{2:00}  <>  Scores:", (int)(m_Game.TimeLeft.TotalSeconds / 60 / 60), (int)(m_Game.TimeLeft.TotalSeconds / 60) % 60, (int)(m_Game.TimeLeft.TotalSeconds) % 60);
     for (int i = 0; i < m_Game.Teams.Count; i++)
     {
         CTFTeam team = (CTFTeam)m_Game.Teams[i];
         m_Game.PlayerMessage("Team {0}: {1} points", team.Name, team.Points);
     }
 }