public static void Init(TiledImporter.Preferences preferences, System.Action callback = null)
    {
        TiledImporterPreferencesWindow window = EditorWindow.GetWindow <TiledImporterPreferencesWindow>();

        window._preferences = preferences;
        window._callback    = callback == null ? delegate { } : callback;

        window.Show();
    }
Exemplo n.º 2
0
 private static void HandleTiledAsset(string fullPath, string extension)
 {
     if (_preferences.tiled2UnityPath.Value == string.Empty)
     {
         TiledImporterPreferencesWindow.Init(_preferences,
                                             () => RunTiled2UnityOnAsset(fullPath));
     }
     else
     {
         RunTiled2UnityOnAsset(fullPath);
     }
 }
Exemplo n.º 3
0
 private static void ShowPathWindow()
 {
     TiledImporterPreferencesWindow.Init(_preferences);
 }