public void Dispose() { if (tex != null && !tex.Disposed) { tex.Dispose(); } }
void OnDisable() { if (mat != null) { mat.Dispose(); } if (worldMatrix != null) { worldMatrix.Dispose(); } if (edgeMatrices != null) { edgeMatrices.Dispose(); } if (uvMatrix != null) { uvMatrix.Dispose(); } }