diff --git a/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs b/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs index 013aadc2..f5371a95 100644 --- a/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs +++ b/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs @@ -21,7 +21,7 @@ namespace Fungus protected SerializedProperty descriptionProp; protected SerializedProperty colorCommandsProp; protected SerializedProperty hideComponentsProp; - protected SerializedProperty pauseAfterCommandProp; + protected SerializedProperty stepPauseProp; protected SerializedProperty saveSelectionProp; protected SerializedProperty localizationIdProp; protected SerializedProperty variablesProp; @@ -31,7 +31,7 @@ namespace Fungus descriptionProp = serializedObject.FindProperty("description"); colorCommandsProp = serializedObject.FindProperty("colorCommands"); hideComponentsProp = serializedObject.FindProperty("hideComponents"); - pauseAfterCommandProp = serializedObject.FindProperty("pauseAfterCommand"); + stepPauseProp = serializedObject.FindProperty("stepPause"); saveSelectionProp = serializedObject.FindProperty("saveSelection"); localizationIdProp = serializedObject.FindProperty("localizationId"); variablesProp = serializedObject.FindProperty("variables"); @@ -48,7 +48,7 @@ namespace Fungus EditorGUILayout.PropertyField(descriptionProp); EditorGUILayout.PropertyField(colorCommandsProp); EditorGUILayout.PropertyField(hideComponentsProp); - EditorGUILayout.PropertyField(pauseAfterCommandProp); + EditorGUILayout.PropertyField(stepPauseProp); EditorGUILayout.PropertyField(saveSelectionProp); EditorGUILayout.PropertyField(localizationIdProp); diff --git a/Assets/Fungus/Flowchart/Scripts/Block.cs b/Assets/Fungus/Flowchart/Scripts/Block.cs index ece3adf2..87134cd9 100644 --- a/Assets/Fungus/Flowchart/Scripts/Block.cs +++ b/Assets/Fungus/Flowchart/Scripts/Block.cs @@ -231,9 +231,9 @@ namespace Fungus } #if UNITY_EDITOR - if (flowchart.pauseAfterCommand > 0f) + if (flowchart.stepPause > 0f) { - yield return new WaitForSeconds(flowchart.pauseAfterCommand); + yield return new WaitForSeconds(flowchart.stepPause); } #endif diff --git a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs index 5dde9758..4a3c7dd2 100644 --- a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs +++ b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs @@ -86,8 +86,8 @@ namespace Fungus * Slow down execution in the editor to make it easier to visualise program flow. */ [Range(0f, 5f)] - [Tooltip("Slow down execution in the editor to make it easier to visualise program flow. Does not affect platform builds.")] - public float pauseAfterCommand = 0f; + [Tooltip("Adds a pause after each execution step to make it easier to visualise program flow. Editor only, has no effect in platform builds.")] + public float stepPause = 0f; /** * Use command color when displaying the command list in the inspector.