public static Vector3 CellToWorld(this IMapObject self, Vector2Int pos, MapManager manager) => self.FindTilemap(manager)?.GetCellCenterWorld(pos.ToVector3Int()) ?? Vector3.zero;
/// <summary> /// Tilemapを取得する /// </summary> public static Tilemap FindTilemap(this IMapObject self, MapManager manager) => manager.MapControl.FindTilemap(self.Level);
public static Vector3 CellToWorld(this IMapObject self, MapManager manager) => self.CellToWorld(self.CellPos, manager);
public static Map.TileDataMap FindTileDataMap(this IMapObject self, MapManager manager) => manager.MapControl.FindTileDataMap(self);