private static int set_plugOptions(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); TweenerCore <Vector3, Vector3, VectorOptions> tweenerCore = (TweenerCore <Vector3, Vector3, VectorOptions>)obj; VectorOptions plugOptions = (VectorOptions)ToLua.CheckObject(L, 2, typeof(VectorOptions)); tweenerCore.plugOptions = plugOptions; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index plugOptions on a nil value"); } return(result); }
private static int get_plugOptions(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); TweenerCore <Vector3, Vector3, VectorOptions> tweenerCore = (TweenerCore <Vector3, Vector3, VectorOptions>)obj; VectorOptions plugOptions = tweenerCore.plugOptions; ToLua.PushValue(L, plugOptions); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index plugOptions on a nil value"); } return(result); }