How do I import variables from another script? (Java)

I’m using a script that basically works as a quest, if the quest is finished, the variable is set to true. If that variable is true, it should trigger another script, however; I can’t trigger the script if I don’t have the variable imported.

tl;dr: how do I import variables from another script

http://unity3d.com/learn/tutorials/modules/beginner/scripting/getcomponent

And it’s Javascript (or, better still, Unityscript), not Java.

I meant that <3

here’s a video on get component and class inheritance.

What’s better than one tutorial video? Two tutorial videos, though I like yours better.