hello i have an script and i get this error what is the problem
var lightb: boolean = false;
var Player: GameObject;
var lightq: Light;
function OnTriggerEnter (colidster : Collider) {
if(colidster.collider.tag == Player.tag)
lightb = true;
}
function OnTriggerExit (colidster : Collider) {
if(colidster.collider.tag == Player.tag)
lightb = false;
}
function Update () {
lightb = !lightb;
if (lightb)
lightq = true;
if (!lightb)
lightq = false;
}
this is the error: BCE0022: Cannot convert ‘boolean’ to ‘UnityEngine.Light’.