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();
        }
Example #2
0
 public void Stop()
 {
     if (feedbackList != null)
     {
         feedbackList.Stop();
     }
 }