Эх сурвалжийг харах

[csharp] readonly VertexAttachment.id

John 8 жил өмнө
parent
commit
45bdf87dac

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