コード例 #1
0
ファイル: StopSound.cs プロジェクト: Nachtrind/Fungus
 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
 }
コード例 #2
0
ファイル: PlaySound.cs プロジェクト: Nachtrind/Fungus
 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
 }