Changing light Intensity though script does nothing

I’ve written a script where when the player teleports a Particle effect turns on and a light turns on. To make the light turn on I decided to start the light with 0 intensity then when the script activates turn the intensity to 0.36.

The problem is that even though the object registers the input the light does not change (even though when I inspect the object the intensity = 0.36). I’ve posted the code bellow to make sure everything is correct, my guess that the lights are pre-rendered and so they cannot be changed during gameplay, however that’s just my hypothesis and really have no idea.

Please could someone explain why my light is not changing and how I can fix this.



using UnityEngine;
using System.Collections;

public class TeleportSectionComplete : MonoBehaviour 
	public Transform exit;
	public Transform last;
	public GameObject lp;
	void OnTriggerEnter ( Collider other) 
		if (exit == last)
		TeleportToExit( other );
	void OnTriggerExit ()
		Debug.Log("Exit Trigger");
		if (exit == last)
			last = null;
	void TeleportToExit (Collider other)
		last = transform;
		other.transform.position = exit.transform.position;
		lp.light.intensity = 0.36f; 

How many of these lights do you have? Look at Edit/Project Settings/Quality. Pixel Light Count will determine the maximum number that will be rendered.