How to get fields from other script?

for example I have got
ScirptA.isRotating = false;

now I want to use “isRotating” in ScriptB,
i coundn’t find any about this in doc.


Eg. Line 19 here:

Also, let’s say scriptA is held by entityA, which is a different entity than the one holding scriptB (entityB).
In this case, you can access scriptA from scriptB by passing entityA as a script attribute in scriptB.