@ -14,6 +14,7 @@ namespace Fungus
SerializedProperty startSequenceProp ;
SerializedProperty startAutomaticallyProp ;
SerializedProperty colorCommandsProp ;
SerializedProperty hideSequenceObjectsProp ;
SerializedProperty variablesProp ;
void OnEnable ( )
@ -22,6 +23,7 @@ namespace Fungus
startSequenceProp = serializedObject . FindProperty ( "startSequence" ) ;
startAutomaticallyProp = serializedObject . FindProperty ( "startAutomatically" ) ;
colorCommandsProp = serializedObject . FindProperty ( "colorCommands" ) ;
hideSequenceObjectsProp = serializedObject . FindProperty ( "hideSequenceObjects" ) ;
variablesProp = serializedObject . FindProperty ( "variables" ) ;
}
@ -36,6 +38,8 @@ namespace Fungus
FungusScript t = target as FungusScript ;
t . UpdateHideFlags ( ) ;
if ( Application . isPlaying )
{
if ( t . executingSequence = = null )
@ -66,6 +70,8 @@ namespace Fungus
EditorGUILayout . PropertyField ( colorCommandsProp , new GUIContent ( "Color Commands" , "Display commands using colors in editor window." ) ) ;
EditorGUILayout . PropertyField ( hideSequenceObjectsProp , new GUIContent ( "Hide Sequence Objects" , "Hides the Sequence game objects in the hierarchy view." ) ) ;
EditorGUILayout . Separator ( ) ;
GUILayout . BeginHorizontal ( ) ;