Skip to content

Commit b5daeac

Browse files
committed
Remove readonly modifier from Coordinate3D.cs and Coordinate2D.cs, so unity can serialize them properly
1 parent 23e0f0c commit b5daeac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

HexCore/Coordinate2D.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace HexCore
77
[Serializable]
88
public struct Coordinate2D
99
{
10-
public readonly int X, Y;
11-
public readonly OffsetTypes OffsetType;
10+
public int X, Y;
11+
public OffsetTypes OffsetType;
1212

1313
public Coordinate3D To3D()
1414
{

HexCore/Coordinate3D.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace HexCore
77
[Serializable]
88
public struct Coordinate3D
99
{
10-
public readonly int X, Y, Z;
10+
public int X, Y, Z;
1111

1212
public Coordinate2D To2D(OffsetTypes offsetType)
1313
{

HexCore/HexCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<RootNamespace>HexCore</RootNamespace>
6-
<Version>4.0.2</Version>
6+
<Version>4.1.0</Version>
77
<Authors>Anton Suprunchuk</Authors>
88
<Description>Yet another library to manage hexagonal grids. For docs and usage examples please see the GitHub repo.</Description>
99
<RepositoryType>Git</RepositoryType>

0 commit comments

Comments
 (0)