edit bool from diffirent script

C#
 using UnityEngine; using System.Collections;  public class BoolChanger : MonoBehaviour  {      public IGotBools boolBoy;      void Start()     {         // Finds the object the script "IGotBools" is attached to and assigns it to the gameobject called g.         GameObject g = GameObject.FindGameObjectWithTag (BoolKeeper);         //assigns the script component "IGotBools" to the public variable of type "IGotBools" names boolBoy.         boolBoy = g.GetComponent<IGotBools> ();          // accesses the bool named "isOnFire" and changed it's value.         boolBoy.isOnFire = false;      }  }
Source

Also in C#: