unity c# get bool from another script

C#
GameObject.Find("NAMEOFOBJECTWITHCOMPONENT").GetComponent<NAMEOFSCRIPT>().NAMEOFBOOL
Source

Also in C#: