Unity3D-NLua icon indicating copy to clipboard operation
Unity3D-NLua copied to clipboard

Anyone know why this doesn't work?

Open qantrepreneur opened this issue 9 years ago • 0 comments

I'm getting an error telling me: unexpected symbol near ')'

How do I fix this. Note: addCommand is an function from a .NET script called Console.

Console.addCommand (Command("Test", "This is a text command.", 0, 1), function(args)
    if args.Length == 1 then
        Console.Log ("WOOP!")
    end
)

qantrepreneur avatar Dec 30 '15 20:12 qantrepreneur