title: Unity3D/C# - add a variable to gameobject
body: <p>How can I add a variable to a GameObject? 
  GameObjects have a series of variables (name, transform, ...) that can be accessed and modified from any script. How could I add a variable such as for example "color" or "type" that could be accessed or modified from other scripts.
  Thanks.</p>