unity GameObject subscribe to trigger from code code example
Example 1: unity c# get bool from another script
GameObject.Find("NAMEOFOBJECTWITHCOMPONENT").GetComponent<NAMEOFSCRIPT>().NAMEOFBOOL
Example 2: how to add a componet to a gameobject throgh code unity
//This uses C# and unity
//to add a ridgidbody
gameobject.addComponet<ridgidbody>();
//to add a meshCollider
gameobject.addComponet<MeshCollider>();
//check out my profile