// Token: 0x06006B3A RID: 27450 RVA: 0x001E1584 File Offset: 0x001DF784 public static void SearchAndPlaySpineAnimEventSound(string spineDataName, string animationName, string eventName) { string soundName = SpineAnimationSoundTable.GetSoundName(spineDataName, animationName, eventName); if (string.IsNullOrEmpty(soundName)) { return; } if (GameManager.Instance == null || GameManager.Instance.AudioManager == null) { return; } GameManager.Instance.AudioManager.PlaySound(soundName, 1f); }
public static int constructor(IntPtr l) { int result; try { SpineAnimationSoundTable o = new SpineAnimationSoundTable(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int Initialize_s(IntPtr l) { int result; try { ClientConfigDataLoader loader; LuaObject.checkType <ClientConfigDataLoader>(l, 1, out loader); SpineAnimationSoundTable.Initialize(loader); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetSoundName_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); string soundName = SpineAnimationSoundTable.GetSoundName(spineDataName, animationName, eventName); LuaObject.pushValue(l, true); LuaObject.pushValue(l, soundName); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }