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