standard asset script is broken, how do I fix it?

I am very new to unity. I just finished a tutorial on unity cookie and told it to play and I got a bunch of compiler errors all coming from the standard assets scripts. I managed to fix all but one. In Assets/Standard Assets/Scripts/General scripts/ActivateTrigger.cs I get CS0131: left hand side of an assignment must be a variable, a property or an indexer. This is the code

using UnityEngine;

public class ActivateTrigger : MonoBehaviour {
	public enum Mode {
		Trigger   = 0, // Just broadcast the action on to the target
		Replace   = 1, // replace target with source
		Activate  = 2, // Activate the target GameObject
		Enable    = 3, // Enable a component
		Animate   = 4, // Start animation on target
		Deactivate= 5 // Decativate target GameObject
	}

	/// The action to accomplish
	public Mode action = Mode.Activate;

	/// The game object to affect. If none, the trigger work on this game object
	public Object target;
	public GameObject source;
	public int triggerCount = 1;///
	public bool repeatTrigger = false;
	
	void DoActivateTrigger () {
		triggerCount--;

		if (triggerCount == 0 || repeatTrigger) {
			Object currentTarget = target != null ? target : gameObject;
			Behaviour targetBehaviour = currentTarget as Behaviour;
			GameObject targetGameObject = currentTarget as GameObject;
			if (targetBehaviour != null)
				targetGameObject = targetBehaviour.gameObject;
		
			switch (action) {
				case Mode.Trigger:
					targetGameObject.BroadcastMessage ("DoActivateTrigger");
					break;
				case Mode.Replace:
					if (source != null) {
						Object.Instantiate (source, targetGameObject.transform.position, targetGameObject.transform.rotation);
						DestroyObject (targetGameObject);
					}
					break;
				case Mode.Activate:
					targetGameObject.SetActive = true;
				
					break;
				case Mode.Enable:
					if (targetBehaviour != null)
						targetBehaviour.enabled = true;
					break;	
				case Mode.Animate:
					targetGameObject.animation.Play ();
					break;	
				case Mode.Deactivate:
					targetGameObject.SetActive = false;
					break;
			}
		}
	}

	void OnTriggerEnter (Collider other) {
		DoActivateTrigger ();
	}
}

the error is supposedly on line 43 and 54 where it says targetGameObject.SetActive = false;
I guess there is something wrong with targetGameObject? I did not write this script, the unity developers did and I am not quite proficient enough in C#.
Anyone know how to fix this?

Change 43 to targetGameObject.SetActive (true);`` and 54 to ``targetGameObject.SetActive (false); :slight_smile:

That fixed it. Thanks a bunch!