[csharp] readonly VertexAttachment.id

This commit is contained in:
John 2017-06-11 02:37:03 +08:00 committed by GitHub
parent 14d031cb78
commit 45bdf87dac

View File

@ -35,7 +35,7 @@ namespace Spine {
public class VertexAttachment : Attachment {
static int nextID = 0;
internal int id = (nextID++ & 65535) << 11;
internal readonly int id = (nextID++ & 65535) << 11;
internal int[] bones;
internal float[] vertices;
internal int worldVerticesLength;