Exemplo n.º 1
0
        public void Create(int selectedTextMap)
        {
            if (string.IsNullOrEmpty(MapPath))
            {
                return;
            }

            EditorUtility.DisplayProgressBar("Loading Map...", "Reading textmap", 0);

            try
            {
                Wad.Create(selectedTextMap, this);
                Textmap = Wad.textmaps[selectedTextMap];
            }
            catch (Exception e)
            {
                Debug.LogError(e);
            }

            EditorUtility.ClearProgressBar();
        }