Hello world! - sonygod/luaxe-nlua GitHub Wiki
package ;
import luaxe.Lua;
import unityengine.*;
using Reflect;
using unityHelper.TypeCheck;
class Main
{
public static var mMain:Main;
public var current:MonoBehaviour;
public function new() {
untyped __call__(SetMain, this);
}
@:keep function Awake() {
trace("hello world!");
}
public static function main()
{
mMain = new Main();
}
}