error the name 'lightDirty' does not exist in current context.

help a noob.

Your variable based off line:57 is/should be “lightdirty” not “lightDirty”, it’s all lower case. I mean its right there four lines below.