Skip to content
Snippets Groups Projects
Commit 27bb88f7 authored by mhby1g21's avatar mhby1g21
Browse files

added #if UNITY_EDITOR #endif directives to all editor related scripts to...

added #if UNITY_EDITOR #endif directives to all editor related scripts to allow build compiles successfully
parent b3773a0d
No related branches found
No related tags found
3 merge requests!9working premade rooms ui, also exportable as .exe (works),!8added #if UNITY_EDITOR #endif directives to all editor related scripts to...,!7added #if UNITY_EDITOR #endif directives to all editor related scripts
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using System;
......@@ -311,3 +313,4 @@ public class EditorCoroutine
}
}
}
#endif
\ No newline at end of file
#if UNITY_EDITOR
using UnityEngine;
using System.Collections;
using UnityEditor;
......@@ -37,3 +38,4 @@ public class DelayedAudioPlay : MonoBehaviour
Debug.Log($"Playing audio source: {audioSource.name}");
}
}
#endif
\ No newline at end of file
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
......@@ -14,3 +16,4 @@ public class ChangeAudio : MonoBehaviour
EditorUtility.OpenPropertyEditor(audioSource);
}
}
#endif
\ No newline at end of file
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
......@@ -56,3 +58,4 @@ public class LoadDemo : MonoBehaviour
}
}
}
#endif
\ No newline at end of file
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using System.IO;
......@@ -164,3 +166,4 @@ public class ImportScenery : MonoBehaviour
materialAssigner.Initialise();
}
}
#endif
\ No newline at end of file
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
......@@ -61,3 +63,4 @@ public class ImportSound : MonoBehaviour
EditorUtility.DisplayDialog("Audio file added!", name + " added to assets. Assign with \"Change Audio\"." , "OK");
}
}
#endif
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
......@@ -33,3 +35,4 @@ public class SoundClickToggle : MonoBehaviour
UnityEditor.EditorUtility.DisplayDialog("Audio Mode Set!", dialog, "OK");
}
}
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment