Beispiel #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();
 }
Beispiel #2
0
    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);
 }