Ejemplo n.º 1
0
 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()));
 }
Ejemplo n.º 2
0
        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!");
            }
        }