void OnGameStateUpdate() { //Will change for multi player games. Opponent = CurrentGameState.GetInstance().Players.Where(player => player.Key != CurrentPlayerState.Instance.PlayerId).First().Value; if (ScoreBoard != null) { ScoreBoard.GetComponentsInChildren <TextMesh>()[0].text = Opponent.Health.ToString(); } }