コード例 #1
0
    private static int set_quality(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            SkinnedMeshRenderer skinnedMeshRenderer = (SkinnedMeshRenderer)obj;
            SkinQuality         quality             = (int)ToLua.CheckObject(L, 2, typeof(SkinQuality));
            skinnedMeshRenderer.set_quality(quality);
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.get_Message() : "attempt to index quality on a nil value");
        }
        return(result);
    }