Daniele Bartolini 10 лет назад
Родитель
Сommit
ff7d188331
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      tools/core/math/Vector2.cs
  2. 2 2
      tools/core/math/Vector3.cs

+ 2 - 2
tools/core/math/Vector2.cs

@@ -9,6 +9,8 @@ namespace Crown
 {
 {
 	public struct Vector2
 	public struct Vector2
 	{
 	{
+		public float x, y;
+
 		public Vector2(float x, float y)
 		public Vector2(float x, float y)
 		{
 		{
 			this.x = x;
 			this.x = x;
@@ -34,7 +36,5 @@ namespace Crown
 		{
 		{
 			return a * k;
 			return a * k;
 		}
 		}
-
-		public float x, y;
 	}
 	}
 }
 }

+ 2 - 2
tools/core/math/Vector3.cs

@@ -9,6 +9,8 @@ namespace Crown
 {
 {
 	public struct Vector3
 	public struct Vector3
 	{
 	{
+		public float x, y, z;
+
 		public Vector3(float x, float y, float z)
 		public Vector3(float x, float y, float z)
 		{
 		{
 			this.x = x;
 			this.x = x;
@@ -35,7 +37,5 @@ namespace Crown
 		{
 		{
 			return a * k;
 			return a * k;
 		}
 		}
-
-		public float x, y, z;
 	}
 	}
 }
 }