Changing inspector value with script
<p>I've got some prefabs that move in a certain speed. All have the same script where that speed is assigned from the value of a public variable in the inspector. Like this:
<a href="https://i.stack.imgur.com/YaGVM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YaGVM.png" alt="enter image description here"></a></p>

<p>The variable is Object Speed. What I want to do is changing this speed for every component that uses the script Movimiento Objeto.
My question is: how can I change this value for every component? Probably it's something related to <code>GetComponent</code> but I'm not sure.</p>