In C#6 we can do this.
public MapGenerator.Cord mapCentre => new MapGenerator.Cord(MapSize.X / 2, MapSize.Y / 2);
Instead of doing this.
public MapGenerator.Cord mapCentre
{
get
{
return new MapGenerator.Cord(MapSize.X / 2, MapSize.Y / 2);
}
}
A lot more code for no good reason. How ever, Unity3d will complain on my c#6. No on the this example but everything else, are the plans to add so Unity will support c#6 ?