Example #1
0
        public static void RemoveExampleSpecificData()
        {
            if (_instance == null)
            {
                _instance = new SetupMusicService();
            }

            EditorUtility.DisplayProgressBar("Cleaning Example Project", "Deleting example music manifest file", 0.25f);
            if (!_instance.RemoveMusicServiceExampleManifest())
            {
                UnityEngine.Debug.Log("Failed to delete example music manifest file.");
            }

            EditorUtility.DisplayProgressBar("Cleaning Example Project", "Deleting example music service assets", 0.75f);
            if (!_instance.RemoveMusicServiceExampleStreamingAssets())
            {
                UnityEngine.Debug.Log("Failed to delete example music service assets.");
                EditorUtility.ClearProgressBar();
                return;
            }

            EditorUtility.DisplayProgressBar("Cleaning Example Project", "Refreshing Asset Database", 1.0f);

            AssetDatabase.Refresh();

            UnityEngine.Debug.Log("Successfully cleaned example music service data from project.");
            EditorUtility.ClearProgressBar();
        }