public void OnDestroy() { if (pmb != null) { pmb.Dispose(); } if (buffers.vertexBuffer != null) { buffers.vertexBuffer.Dispose(); } if (buffers.indexBuffer != null) { buffers.indexBuffer.Dispose(); } if (buffers.normalBuffer != null) { buffers.normalBuffer.Dispose(); } if (buffers.argsBuffer != null) { buffers.argsBuffer.Dispose(); } }
public void OnDestroy() { pmb.Dispose(); }