Exemple #1
0
		public void CallObjectMethodByType ()
		{
			using (Lua lua = new Lua ()) {
				TestClass t1 = new TestClass ();
				lua ["netobj"] = t1;
				lua.DoString ("netobj:setVal('str')");
				Assert.AreEqual ("str", t1.getStrVal ());
				//Console.WriteLine("new val(from C#)="+t1.getStrVal());
			}
		}
 public void CallObjectMethodByType()
 {
     TestClass t1 = new TestClass();
     lua.netobj = t1;
     lua("netobj:setVal('str')");
     Assert.AreEqual("str", t1.getStrVal());
 }