public override void DrawGUI(IntelligenceState parentState, Intelligence intelligence, CallbackCollection callbacks) { #if UNITY_EDITOR UnityEditor.EditorGUILayout.BeginHorizontal(); UnityEngine.GUILayout.Label(new UnityEngine.GUIContent("Type:", "Only if this type is currently playing as continuous it will be stopped")); type = (SoundSet.ClipType)UnityEditor.EditorGUILayout.EnumPopup(type); UnityEditor.EditorGUILayout.EndHorizontal(); #endif }
public override void DrawGUI(IntelligenceState parentState, Intelligence intelligence, CallbackCollection callbacks) { #if UNITY_EDITOR UnityEditor.EditorGUILayout.BeginHorizontal(); GUILayout.Label("Type:"); type = (SoundSet.ClipType)UnityEditor.EditorGUILayout.EnumPopup(type); UnityEditor.EditorGUILayout.EndHorizontal(); UnityEditor.EditorGUILayout.BeginHorizontal(); GUILayout.Label("Interval (if continuous):"); interval = UnityEditor.EditorGUILayout.FloatField(interval); UnityEditor.EditorGUILayout.EndHorizontal(); #endif }