Example #1
0
 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();
 }
Example #2
0
 private void OnEnable()
 {
     _bgImage.color    = _playerInfos.GetColor(_player);
     _slantImage.color = _playerInfos.GetColor(_player);
     _nameText.text    = _playerInfos.GetName(_player);
 }