Search Unity

Unexpected symbol `=' in class, struct, or interface member declaration

Discussion in 'Scripting' started by Lilwolfred, Aug 23, 2014.

  1. Lilwolfred

    Lilwolfred

    Joined:
    Aug 23, 2014
    Posts:
    1
    I'm sorry, but no matter what I do I can't get any of my other scripts to recognize my player as the player, so I tried to tag it as player, and now i have an error that = is an unexpected symbol?
    public GameObject.tag = "Player";
    any suggestion on how to tag my player properly?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
  3. toreau

    toreau

    Joined:
    Feb 8, 2014
    Posts:
    204
    Tag your player as "Player" in the inspector instead.