public void UpdateRoom(TileOWW tileOWW) { RuleTile t; if (tileOWW.GetRoomType() != null) { // Create room graphics t = Resources.Load <RuleTile>("TileSets/Rooms/" + tileOWW.GetRoomType()); tilemap.SetTile(new Vector3Int(tileOWW.GetX(), tileOWW.GetY(), 0), t); tilemap.RefreshTile(new Vector3Int(tileOWW.GetX(), tileOWW.GetY(), 0)); } else { // Remove tile graphics t = null; tilemap.SetTile(new Vector3Int(tileOWW.GetX(), tileOWW.GetY(), 0), t); tilemap.RefreshTile(new Vector3Int(tileOWW.GetX(), tileOWW.GetY(), 0)); } }