public void LeavePaintingMode(int requestorId)
{
if (_paintingMode == 0 || _disposed)
return;
_paintingMode ^= requestorId;
if (_paintingMode == 0)
{
paintingGraphics.ClearMesh();
paintingGraphics.enabled = false;
if (this is Container)
{
((Container)this).SetChildrenLayer(this.layer);
((Container)this).UpdateBatchingFlags();
}
else
this.InvalidateBatchingState();
if (graphics != null)
this.gameObject.layer = paintingGraphics.gameObject.layer;
}
}