public void Start() { lua = Global.Instance().Lua; lua.LoadDefines(DefinesPath); // immediate functions lua.GlobalContext.Globals["addItem"] = (Action <DynValue>)AddItem; lua.GlobalContext.Globals["deductItem"] = (Action <DynValue>)DeductItem; lua.GlobalContext.Globals["hasItem"] = (Func <DynValue, DynValue>)HasItem; }