I have reviewed my string reference and code however I continue to get the same bug Rick gets earlier in the video. I tried to exactly replicate what he did to no avail. I find it only happens after I place a cactus, whether or not an attacker is present on the screen or not. Edit:It stops the cactus from changing from an idle animation state to an attack. Has anyone else gotten this bug/knows how to fix it.
Here it is: NullReferenceException: Object reference not set to an instance of an object
Shooter.IsAttackerInLane () (at Assets/Scripts/Shooter.cs:46)
Shooter.Update () (at Assets/Scripts/Shooter.cs:20)