Project Stealth tutorial error

Currently doing the Project Stealth tutorial using Unity 4 (free edition) and got so far #6 video (GameController) and for some reason getting this error…

Assets/Scripts/LastPlayerSighting.cs(21,79): error CS1061: Type `UnityEngine.GameObject[]' does not contain a definition for `light' and no extension method `light' of type `UnityEngine.GameObject[]' could be found (are you missing a using directive or an assembly reference?)

Tutorial link is here:

2 Answers

2

Can you post your LastPlayerSighting.cs script? Are your lights tagged correctly?

Seems I used GameObject.FindGameObjectsWithTag instead of GameObject.FindGameObjectWithTag. Thanks for replying though.