private static TilesetManager CreateTilesetManager(TmxData tmxData) { return(new TilesetManager(tmxData.TmxTilesets.Select(ts => { FlaiDebug.Log("!" + ts.ImageSize.Width + " " + ts.ImageSize.Height); Ensure.True(ts.TileSize.Width == ts.TileSize.Height); return new Tileset(ts.Name, ts.FirstGlobalTileID, ts.TileSize.Width, Path.GetFileNameWithoutExtension(ts.ImagePath), ts.ImageSize.Width, ts.ImageSize.Height); }).ToArray())); }
private void FindMissingScripts() { GameObject[] gameObjects = Selection.gameObjects; bool any = false; foreach (GameObject gameObject in gameObjects) { this.FindMissingScriptsRecursive(gameObject, ref any); } if (!any) { FlaiDebug.Log("No missing scripts found!"); } }