public LoadAudioClip ( string name ) : AudioClip | ||
name | string | |
return | AudioClip |
static int LoadAudioClip(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SoundManager obj = (SoundManager)ToLua.CheckObject(L, 1, typeof(SoundManager)); string arg0 = ToLua.CheckString(L, 2); UnityEngine.AudioClip o = obj.LoadAudioClip(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int LoadAudioClip(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); SoundManager soundManager = (SoundManager)ToLua.CheckObject(L, 1, typeof(SoundManager)); string path = ToLua.CheckString(L, 2); AudioClip obj = soundManager.LoadAudioClip(path); ToLua.Push(L, obj); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }