public override void OnInspectorGUI()
        {
            serializedObject.Update();

            _list.DoLayoutList();
            EditorGUILayout.PropertyField(_brainActive);
            EditorGUILayout.PropertyField(_timeInThisState);
            EditorGUILayout.PropertyField(_owner);
            EditorGUILayout.PropertyField(_target);
            EditorGUILayout.PropertyField(_actionsFrequency);
            EditorGUILayout.PropertyField(_decisionFrequency);
            EditorGUILayout.PropertyField(_randomizeFrequencies);
            if (_randomizeFrequencies.boolValue)
            {
                EditorGUILayout.PropertyField(_randomActionFrequency);
                EditorGUILayout.PropertyField(_randomDecisionFrequency);
            }
            serializedObject.ApplyModifiedProperties();

            AIBrain brain = (AIBrain)target;

            if (brain.CurrentState != null)
            {
                EditorGUILayout.Space();
                EditorGUILayout.LabelField("Current State", brain.CurrentState.StateName);
            }
        }
Beispiel #2
0
 protected override void DrawProperties()
 {
     DrawPropertiesExcluding(serializedObject, "AnimatedPreview", "SignalList", "GlobalMultiplier", "CurrentLevel", "Clamp", "Clamps");
     EditorGUILayout.Space(10);
     _list.DoLayoutList();
     EditorGUILayout.PropertyField(_globalMultiplier);
     EditorGUILayout.PropertyField(_clamps);
     DrawRawSpectrum();
 }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            DrawPropertiesExcluding(serializedObject, "Layers");
            EditorGUILayout.Space(10);
            _list.DoLayoutList();
            serializedObject.ApplyModifiedProperties();

            if (GUILayout.Button("Generate"))
            {
                (target as MMTilemapGenerator).Generate();
            }
        }