static int GetSoundGroup(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.SoundComponent obj = (UnityGameFramework.Runtime.SoundComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.SoundComponent));
         string arg0 = ToLua.CheckString(L, 2);
         GameFramework.Sound.ISoundGroup o = obj.GetSoundGroup(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
        static int _m_GetSoundGroup(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);



                {
                    string _soundGroupName = LuaAPI.lua_tostring(L, 2);

                    GameFramework.Sound.ISoundGroup gen_ret = gen_to_be_invoked.GetSoundGroup(_soundGroupName);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }