private void OnEnable() { _playerScoredEvent.Event += PlayerScored; _bgImage.color = _playerInfos.GetColor(_player); _slantImage.color = _playerInfos.GetColor(_player); _scoreText.color = _playerInfos.GetColor(_player); _nameText.text = _playerInfos.GetName(_player); LayoutForActive(); }
private void SetColor() { var color = _playerInfos.GetColor(_player); color.a = _alpha; foreach (var graphic in _graphics) { graphic.color = color; } foreach (var sprite in _sprites) { sprite.color = color; } }
private void OnEnable() { _bgImage.color = _playerInfos.GetColor(_player); _slantImage.color = _playerInfos.GetColor(_player); _nameText.text = _playerInfos.GetName(_player); }