Esempio n. 1
0
        public override void Show()
        {
            base.Show();

            m_Messages.text           = "";
            m_ListJSONToGenerate.text = "";


            List <string> lFiles = MazeJSONTool.ListJSONFiles();

            if ((lFiles != null) && (lFiles.Count > 0))
            {
                m_ListJSONToGenerate.text = "Number JSON Files to turn into prefab: " + lFiles.Count + "\n";
                for (int i = 0; i < lFiles.Count; i++)
                {
                    string list = " - " + lFiles[i] + "\n";
                    m_ListJSONToGenerate.text += list;
                }
            }
            else
            {
                m_ListJSONToGenerate.text = "No JSON files to turn into prefab. Please place the JSON files in " + MazeJSONTool.PATHJSONTOPREFAB;
            }

            m_BlockInput = false;
        }
Esempio n. 2
0
        public void GenerateMazePrefabs()
        {
            List <string> lFiles = MazeJSONTool.ListJSONFiles();

            if ((lFiles != null) && (lFiles.Count > 0))
            {
                StartCoroutine(RoutineGeneratePrefabs(lFiles));
            }
        }