Example #1
0
    public static int GetVolume_s(IntPtr l)
    {
        int result;

        try
        {
            string category;
            LuaObject.checkType(l, 1, out category);
            float volume = AudioUtility.GetVolume(category);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, volume);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }