Unity game developement essentials chapter 6 help!

I’m learning Unity game developement essentials and I’m on chapter 6.

I’ve been trying to get the HUDon part of my script to work but it won’t work.

I don’t know what’s wrong but when I enter the door’s trigger zone and or pick up a power cell the HUD won’t turn on.

I deactivated the PowerGUI in the hierarchy.

This is my script:

Inventory script:

using UnityEngine;
using System.Collections;

public class Inventory : MonoBehaviour {

public static int charge = 0;
public AudioClip collectSound;

//HUD
public Texture2D[] hudCharge;
public GUITexture chargeHudGUI;


void Start () {
   charge = 0;
}


void Update () {

}


void CellPickup(){
	HUDon();
	AudioSource.PlayClipAtPoint(collectSound, transform.position);
	charge++;
	chargeHudGUI.texture = hudCharge[charge];
}


void HUDon(){
	if(chargeHudGUI.enabled == false){
		chargeHudGUI.enabled = true;
	}
}

}

This is my TriggerZone script:

using UnityEngine;
using System.Collections;

public class TriggerZone : MonoBehaviour {

void Start () {

}


void Update () {

}

public AudioClip lockedSound;

void OnTriggerEnter(Collider col){
	if(col.gameObject.tag == "Player"){
		if(Inventory.charge == 4){
		transform.FindChild("door").SendMessage("DoorCheck");
	}else{
		transform.FindChild("door").audio.PlayOneShot (lockedSound);
		col.gameObject.SendMessage("HUDon");
		}
	}
}

}

I need help!

You need to deactivate the component, not the entire object.

It worked! Many thanks!