Exemplo n.º 1
0
 public void Play()
 {
     if (feedbackList != null)
     {
         feedbackList.Play();
     }
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 public void Play(JuicyFeedbackList list)
 {
     list.Play();
 }