There is no difference between setting a variable from within a component or from another component. Are you sure the code setting this variable is doing this on the correct object and are you sure this code is actually being executed?
i found the problem:
Tom, you are right, variables can be set external. In my case however, the “external” component set the variable from within its Awake() method:
It turned out that the Awake() of component A was not called yet, with the result that the setting from ComponentB got “unnoticed”.
I now use an “initialiser-object” that takes care of the order in which my objects are initialised. I think it is the only way to have a clearly defined initialisation order. The Awake() method is not usefull for this, because the order in which they are called is undetermined…