Bool isn't changing

Here is my code, where did I go wrong how come the bool won’t change in the other script?


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Activator : MonoBehaviour {

	//button change on press
	SpriteRenderer sr;
	Color old;

	//key press
	public KeyCode key;

	//If I can delte bool
	bool active = false;
	public GameManager boolUno;




	//gameobject checking
	GameObject note, gm, ring, center, lring, lcenter;

	public bool createMode = true;
	//Createmode Objects
	public GameObject n;


	//public GameObject longernote;





	void Awake() {
		gm = GameObject.Find ("GameManager");
		sr = GetComponent<SpriteRenderer> ();

		//longernote = GetComponent<DrawLineNote> ();

	}


	void Start () {
		old = sr.color;
		boolUno = gm.GetComponent<GameManager> ();
	}
	
	// Update is called once per frame
	void Update () {


		// only for create mode
		if (createMode) {
			
			if (Input.GetKeyDown (key))
				Instantiate (n, transform.position, Quaternion.identity);
			
		} 

		// Game mode
				else {

			// If I press changes color
			if (Input.GetKeyDown (key)) {
				
				//Changes color
				sr.color = new Color (0, 0, 0);

				//resets if not active
				if (!active) {
					gm.GetComponent<GameManager> ().resetStreak ();
				}

				if (active) {
					// Gets Component of Sprite render for note and disables 
					note.GetComponent<SpriteRenderer> ().enabled = false;
					//Ring Disabled
					ring.GetComponent<SpriteRenderer> ().enabled = false;
					//Center Disabled
					center.GetComponent<SpriteRenderer> ().enabled = false;
					//adds streak
					gm.GetComponent<GameManager> ().addStreak ();
					//adds score
					addScore ();
					//active to false
					active = false;
					boolUno.minusOne = true;
				} 
					
			}
			//Unpress back to regular
			if (Input.GetKeyUp (key)) {
				sr.color = old;
			}

		}

	}

-------------------------------------- NEW CODE STARTS HERE OF OTHER SCRIPT ATTACHED TO ANOTHER GAME OBJECT KNOWN AS GameManager

	public bool minusOne = true;


	// Use this for initialization
	void Start () {
		PlayerPrefs.SetInt ("Score", 0);
		PlayerPrefs.SetInt ("RockMeter", 25);
		PlayerPrefs.SetInt ("Streak",0);
		PlayerPrefs.SetInt ("HighestStreak", 0);
		PlayerPrefs.SetInt ("Mult", 1);
		PlayerPrefs.SetInt ("NotesHit", 0);
		PlayerPrefs.SetInt ("StartMusic", 1);
		PlayerPrefs.SetInt ("TotalNotes", 0);
	}
	
	// Update is called once per frame
	void Update () {
		if (!minusOne) {
			Debug.Log ("boy");
		}
	}

	void OnTriggerEnter2D(Collider2D col){
		if (!minusOne) {
			resetStreak ();
			PlayerPrefs.SetInt ("TotalNotes", PlayerPrefs.GetInt ("TotalNotes") + 1);
		} 
	}

Its not working in either so that why I tried update the bool isn’t changing at all

the default seems to be true and in code it’s set to true. Is it false by default in the insector? so you’re expecting it being true, right?

Make sure you’re not receiving any NullReferenceExceptions in the console meaning boolUno is null. Make sure the code part with the set true part is executed. Make sure the script you’re expecting the minusOne to be set to true is not a different one because of a duplicate in the scene.