private void SetGameGroup(Group group)
{
//The group should have 1 thing, always, but...
//FIXME: after multiple restarts (via 'r' button in HUD) this fails - srivello
if (group.count == 1)
{
_gameEntity = group.GetSingleEntity();
_gameEntity.OnComponentReplaced += Entity_OnComponentReplaced;
//set first value
var scoreComponent = _gameEntity.score;
SetText (scoreComponent.score);
}
else
{
Debug.LogWarning ("CC _scoreGroup failed, should have one entity, has count: " + group.count);
}
}