static int get_eventDispatcher(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.Armature obj = (DragonBones.Armature)o;
            DragonBones.IEventDispatcher <DragonBones.EventObject> ret = obj.eventDispatcher;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index eventDispatcher on a nil value" : e.Message));
        }
    }
Esempio n. 2
0
    static int get_soundEventManager(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.UnityFactory obj = (DragonBones.UnityFactory)o;
            DragonBones.IEventDispatcher <DragonBones.EventObject> ret = obj.soundEventManager;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index soundEventManager on a nil value"));
        }
    }