コード例 #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();
 }
コード例 #2
0
ファイル: PlayerTint.cs プロジェクト: jakeobrien/TrawnKit
    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;
        }
    }
コード例 #3
0
 private void OnEnable()
 {
     _bgImage.color    = _playerInfos.GetColor(_player);
     _slantImage.color = _playerInfos.GetColor(_player);
     _nameText.text    = _playerInfos.GetName(_player);
 }