소스 검색

[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 {
 	public class VertexAttachment : Attachment {
 		static int nextID = 0;
 		static int nextID = 0;
 
 
-		internal int id = (nextID++ & 65535) << 11;
+		internal readonly int id = (nextID++ & 65535) << 11;
 		internal int[] bones;
 		internal int[] bones;
 		internal float[] vertices;
 		internal float[] vertices;
 		internal int worldVerticesLength;
 		internal int worldVerticesLength;