Beispiel #1
0
    private void AdvanceActiveGenerator()
    {
        if (_activeGenerator != null)
        {
            if (_activeGenerator.Advance())
            {
                _progressMessage = _activeGenerator.progressMessage;
            }
            else
            {
                _activeGenerator = null;
                GenerateAtlases();

                if (_activeGenerator == null)                //if it's null, we just built the last atlas we had to generate!
                {
                    Debug.Log("Packrat: Refreshing Asset Database");
                    AssetDatabase.Refresh();
                }
            }
        }
    }
Beispiel #2
0
    private void AdvanceActiveGenerator()
    {
        if (_activeGenerator != null)
        {
            if (_activeGenerator.Advance())
            {
                _progressMessage = _activeGenerator.progressMessage;
                Repaint();                 //this will cause the progress message to be shown in the GUI
            }
            else
            {
                _activeGenerator = null;
                GenerateAtlases();

                if (_activeGenerator == null)                //if it's null, we just built the last atlas we had to generate!
                {
                    Debug.Log("Packrat: Refreshing Asset Database");
                    AssetDatabase.Refresh();
                }

                Repaint();
            }
        }
    }