Ejemplo n.º 1
0
    public static int SearchAndPlaySpineAnimEventSound_s(IntPtr l)
    {
        int result;

        try
        {
            string spineDataName;
            LuaObject.checkType(l, 1, out spineDataName);
            string animationName;
            LuaObject.checkType(l, 2, out animationName);
            string eventName;
            LuaObject.checkType(l, 3, out eventName);
            AudioUtility.SearchAndPlaySpineAnimEventSound(spineDataName, animationName, eventName);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
 // Token: 0x06008AD0 RID: 35536 RVA: 0x002873AC File Offset: 0x002855AC
 private void HandleSpineAnimationEvent(Spine.AnimationState state, int trackIndex, Spine.Event e)
 {
     AudioUtility.SearchAndPlaySpineAnimEventSound(this.m_spine.skeletonDataAsset.name, state.ToString(), e.Data.Name);
 }