From b5daeacc48fd5bfb1ed2d59c6e5665c260b2ab36 Mon Sep 17 00:00:00 2001 From: Anton Suprunchuk Date: Tue, 4 Aug 2020 16:10:48 +0300 Subject: [PATCH] Remove readonly modifier from Coordinate3D.cs and Coordinate2D.cs, so unity can serialize them properly --- HexCore/Coordinate2D.cs | 4 ++-- HexCore/Coordinate3D.cs | 2 +- HexCore/HexCore.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HexCore/Coordinate2D.cs b/HexCore/Coordinate2D.cs index b7aba5d..52dd035 100644 --- a/HexCore/Coordinate2D.cs +++ b/HexCore/Coordinate2D.cs @@ -7,8 +7,8 @@ namespace HexCore [Serializable] public struct Coordinate2D { - public readonly int X, Y; - public readonly OffsetTypes OffsetType; + public int X, Y; + public OffsetTypes OffsetType; public Coordinate3D To3D() { diff --git a/HexCore/Coordinate3D.cs b/HexCore/Coordinate3D.cs index 71341d3..2d8a472 100644 --- a/HexCore/Coordinate3D.cs +++ b/HexCore/Coordinate3D.cs @@ -7,7 +7,7 @@ namespace HexCore [Serializable] public struct Coordinate3D { - public readonly int X, Y, Z; + public int X, Y, Z; public Coordinate2D To2D(OffsetTypes offsetType) { diff --git a/HexCore/HexCore.csproj b/HexCore/HexCore.csproj index d32fd36..ee1b97b 100644 --- a/HexCore/HexCore.csproj +++ b/HexCore/HexCore.csproj @@ -3,7 +3,7 @@ netstandard2.0 HexCore - 4.0.2 + 4.1.0 Anton Suprunchuk Yet another library to manage hexagonal grids. For docs and usage examples please see the GitHub repo. Git