示例#1
0
        public override void DrawCommandGUI()
        {
            serializedObject.Update();

            AddOption t = target as AddOption;

            EditorGUILayout.PropertyField(optionTextProp, new GUIContent("Option Text", "Text to display on the option button."));

            SequenceEditor.SequenceField(targetSequenceProp,
                                         new GUIContent("Target Sequence", "Sequence to execute when this option is selected by the player."),
                                         new GUIContent("<Continue>"),
                                         t.GetFungusScript());

            EditorGUILayout.PropertyField(hideOnSelectedProp, new GUIContent("Hide On Selected", "Hide this option forever once the player has selected it."));

            serializedObject.ApplyModifiedProperties();
        }
示例#2
0
        public override void DrawCommandGUI()
        {
            serializedObject.Update();

            AddOption t = target as AddOption;

            EditorGUILayout.PropertyField(optionTextProp, new GUIContent("Option Text", "Text to display on the option button."));

            BlockEditor.BlockField(targetBlockProp,
                                   new GUIContent("Target Block", "Block to execute when this option is selected by the player."),
                                   new GUIContent("<Continue>"),
                                   t.GetFlowchart());

            serializedObject.ApplyModifiedProperties();

            base.DrawCommandGUI();

            serializedObject.Update();
            EditorGUILayout.PropertyField(hideOnSelectedProp, new GUIContent("Hide On Selected", "Hide this option forever once the player has selected it."));
            serializedObject.ApplyModifiedProperties();
        }