From the Unity tutorials: error on FindGameObjectWithTag Tags

Hello everybody.

I’m following the tutorial called Stealth and so far, so good.

But the thing is that I can’t continue because some script is marking me with an error. Specificaly this:
player = GameObject.FindGameObjectWithTag(Tags.player)

The Tags.player is in red and it says that the name Tags does not exist in the current context. I copy/paste the same script as the tutorial.

Can you help me?

I haven’t checked out the tutorial but it sounds like you are missing some file(s) (Tags.cs or Tags.js most likely).

You could try to replace Tags.player with "Player" (Yes, including the qoutes). However this is a brittle attempt to get what you got working - it may compile but the game logic may be wrong.

I’d suggest that you start the tutorial over or at least back track and see if there is any step that you’ve missed doing.