public void ImportState(JSONClass state) { Position = state["Position"].ImportVector3(); Rotation = state["Rotation"].ImportVector3(); MeshPath = state["MeshPath"]; CellType = state["CellType"].ToEnum <RoomCellType>(); // TODO: Load Mesh asset... }
public Color32[] GetColorBlock(ERoomFlag flag) { if (!_roomCellTypes.ContainsKey(flag)) { RoomCellType __newCell = new RoomCellType(flag, _size, _borderSize, _spaceColor, _wallColor, _lockColor); _roomCellTypes.Add(flag, __newCell.GetColorBlock()); } return _roomCellTypes[flag]; }