- Home /
Unexpected Token: )
Hi everyone I'm slowly converting C# code I have into UnityScript and I built this code as I'm converting and came upon this error Unexpected token: ).
Here is the code being used.
pragma strict
public var conActive : boolean;
public var game : TeamGameSetup;
public var playerSelected : boolean;
var playerName : String;
var selectNetPlayer : NetworkPlayer;
var chat : FPSChat;
var games : GameObject;
function Start ()
{
games = GameObject.Find("GameScripts").GetComponent();
}
function Update () {
}
Answer by BiG · Apr 18, 2012 at 04:01 PM
It's referred to GetComponent(): that's not legal, because GetComponent function requires a parameter.
Your answer
Follow this Question
Related Questions
I'm trying to teleport an object. But keep failing. 2 Answers
Help me with this Unexpected token error 1 Answer
Unexpected Token: if 2 Answers
unexpected Token error 1 Answer