public void Play() { if (feedbackList != null) { feedbackList.Play(); } }
private void DrawAdvancedSettings() { EditorGUILayout.EditorToolbar(); showAdvancedSettings = EditorGUILayout.BeginFoldoutHeaderGroup(showAdvancedSettings, "Advanced", JuicyStyles.HeaderFoldout); if (showAdvancedSettings) { EditorGUILayout.PropertyField(CacheProperty("playOnEnable")); using (new EditorGUI.DisabledScope(!Application.isPlaying)) using (new EditorGUILayout.HorizontalScope()) { if (GUILayout.Button("Play")) { juicyFeedbackList.Play(); } /*if (GUILayout.Button("Pause")) { * juicyFeedbackList.Pause(); * }*/ if (GUILayout.Button("Stop")) { juicyFeedbackList.Stop(); } } } EditorGUILayout.EndFoldoutHeaderGroup(); }
public void Play(JuicyFeedbackList list) { list.Play(); }