public Game() { GameClock = new GameClock(); Horn = new Horn(); Period = new Period(); ShotClock = new ShotClock(); Possession = new Possession(); Home = new Team(); Guest = new Team(); TimeoutClock = new TimeoutClock(); }
private void UpdateUI() { m_UIHomeScore.text = GameManager.Singleton.TeamHome.TeamData.points.ToString(); m_UIAwayScore.text = GameManager.Singleton.TeamAway.TeamData.points.ToString(); m_UIQuarter.text = (m_OvertimeCount > 0) ? "OT" + m_OvertimeCount : Quarter.ToString(); m_UIClock.text = string.Format("{0}:{1}", Mathf.Floor(InGameTime / 60), Mathf.RoundToInt(InGameTime % 60)); if (m_shotclockOff) { m_UIShotClock.text = ""; } else { m_UIShotClock.text = (ShotClock > 1.0f) ? ShotClock.ToString("F0") : ShotClock.ToString("F1"); } }