title: Lightweight variable visible to all scripts in same gameobject
body: <p>My player's character has several scripts attached. </p>
  
  <p>Now I would like to add one variable that should be accessible by a few other scripts in this gameobject. </p>
  
  <p>I need to show the gameobject in an inventory scene. I move him into the inventory scene by </p>
  
  <pre><code>SceneManager.MoveGameObjectToScene(Hero, InventoryScene);
  </code></pre>
  
  <p>While the gameobject is shown in this inventory scene, the player shouldn't be able to move it. </p>
  
  <p>So I would like to add a variable named "isFrozen" to the gameobject. When this variable is true, no player input will be processed.</p>
  
  <p>The movement logic goes over 3 scripts. </p>
  
  <p>How could I best make it known (in a lightweight fasion) to the scripts that the player is currently frozen? </p>
  
  <p>Or should I try to combine them into 1 script and add this variable to this single script? </p>