浏览代码

[csharp] readonly VertexAttachment.id

John 8 年之前
父节点
当前提交
45bdf87dac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-csharp/src/Attachments/VertexAttachment.cs

+ 1 - 1
spine-csharp/src/Attachments/VertexAttachment.cs

@@ -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;