Can I create variables for the game object?

This is kind of a crazy question…

If I need to access a variable from another script I use someGameObject.GetComponent(“script name”).variableName. But that’s kind of long to type, I wish I could just do someGameObject.variableName…

Can I somehow make a variable inside the gameObject so I can access it directly and faster?

No.

Unless you specify a variable of type component (for example :

var specialScript : SpecialScript;
specialScript = GetComponent (SpecialScript);

then, you can access its variables.

specialScript.someValue