I'm having trouble creating a C#.NET object in Lua. I can do this no problem with the System.Console type but this object has another object in it's constructor so that may be the issue. I hope you guys can help.
Here is my c# code:
public class GameController : DrawableGameComponent
public string gcname;
public GameController(Game game)
this.gcname = "Pulled from gc";
Here is my lua code:
game = luanet.import_type("Microsoft.Xna.Framework.Game");
gObj2 = luanet.import_type("PointClick.GameController");
gObj2.gcname=" to this";
I get the error "attempt to index global 'gOb2' (a nil value)" on the line "gObj2.gcname=to this"
Thanks in advance.