public void Init(ILivesController livesManager, IScoresManager scoresManager) { scoresManager.OnScoresChange += UpdateScoresLabel; livesManager.OnLivesCountChange += UpdateLivesCountLabel; UpdateLivesCountLabel(livesManager.Lives); UpdateScoresLabel(scoresManager.Scores); }
public void Init(ILivesController livesController) { _livesController = livesController; }