static int get_rotateComp(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PuppetBehavior obj = (PuppetBehavior)o; RotateComp ret = obj.rotateComp; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rotateComp on a nil value" : e.Message)); } }
public void MyRotateModifier(RotateComp rotComp, double value) { rotComp.Rotate = (float)value; }