private void _doAction(ActionData value) { switch (value.type) { case ActionType.Play: _animation.PlayConfig(value.animationConfig); break; default: break; } }
static int PlayConfig(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DragonBones.Animation obj = (DragonBones.Animation)ToLua.CheckObject <DragonBones.Animation>(L, 1); DragonBones.AnimationConfig arg0 = (DragonBones.AnimationConfig)ToLua.CheckObject <DragonBones.AnimationConfig>(L, 2); DragonBones.AnimationState o = obj.PlayConfig(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }