static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.AudioRolloffMode o = (UnityEngine.AudioRolloffMode)arg0; ToLua.Push(L, o); return(1); }
static int set_rolloffMode(IntPtr L) { UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.ToObject(L, 1); UnityEngine.AudioRolloffMode arg0 = (UnityEngine.AudioRolloffMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioRolloffMode)); try { obj.rolloffMode = arg0; } catch (Exception e) { return(LuaDLL.luaL_error(L, obj == null ? "attempt to index rolloffMode on a nil value" : e.Message)); } return(0); }
static int get_rolloffMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o; UnityEngine.AudioRolloffMode ret = obj.rolloffMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rolloffMode on a nil value")); } }
static int set_rolloffMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o; UnityEngine.AudioRolloffMode arg0 = (UnityEngine.AudioRolloffMode)ToLua.CheckObject(L, 2, TypeTraits <UnityEngine.AudioRolloffMode> .type); obj.rolloffMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rolloffMode on a nil value")); } }
static int set_rolloffMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o; UnityEngine.AudioRolloffMode arg0 = (UnityEngine.AudioRolloffMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioRolloffMode)); obj.rolloffMode = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rolloffMode on a nil value" : e.Message); } }