mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
animations and QOL
This commit is contained in:
@@ -3,7 +3,7 @@ using NResUI.Rendering.Viewport.Meshes;
|
||||
|
||||
namespace NResUI.Rendering.Viewport;
|
||||
|
||||
public sealed class ViewportPiece
|
||||
public sealed class ViewportPiece : IDisposable
|
||||
{
|
||||
public int Id { get; }
|
||||
public string Name { get; }
|
||||
@@ -75,4 +75,10 @@ public sealed class ViewportPiece
|
||||
TriangleCount = 12
|
||||
});
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var mesh in Meshes)
|
||||
mesh.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user