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