Search Unity

Stealth Tutorial - Script Error in lesson 303

Discussion in 'Community Learning & Teaching' started by Smackizar, Feb 26, 2014.

  1. Smackizar

    Smackizar

    Joined:
    Oct 26, 2013
    Posts:
    6
    Hey there folks. I'm following along the Unity Stealth Project tutorial, and have been doing fine up until now. In lesson 303, you set up some single doors. Here's a link to the YouTube video: http://www.youtube.com/watch?v=9rEI2mLUKcM

    So, I'm getting this error over and over.
    Assets/DoorAnimation.cs(52,54): error CS0117: `Tags' does not contain a definition for `enemy'

    No idea whats up. After an hour or so of trying to debug it on my own I copied the provided script from the lesson in, and I get the same errors. An ideas? Anyone run into this as well?

    Thanks for helping out a noob!
     
    Last edited: Feb 26, 2014
  2. Smackizar

    Smackizar

    Joined:
    Oct 26, 2013
    Posts:
    6
    Whoops, Looks like way back when I made the Tags script, I labeled it as 'enemies' instead of 'enemy' My bad!

    Learning Hoooooooooo!!!