コード例 #1
0
    void Awake()
    {
        _ref = GetComponent <CollectableBirdController>();

        foreach (var particles in GetComponentsInChildren <ParticleSystem>())
        {
            var main = particles.main;
            main.startColor = _ref.BirdChannel.BirdColor;
        }
    }
コード例 #2
0
 void Awake() => _birdController = GetComponent <CollectableBirdController>();