// Implement your own custom GUI here if you want to
    public override void DrawInspectorProperties(AIBehaviors fsm, SerializedObject sObject)
    {
        if (fsm.GetComponent <NavMeshAgent>() == null)
        {
            Color oldColor = GUI.contentColor;
            GUI.contentColor = Color.yellow;
            EditorGUILayout.HelpBox("This trigger only works with an AI that uses a NavMeshAgent", MessageType.Warning);
            GUI.contentColor = oldColor;
        }

        InspectorHelper.DrawInspector(sObject);
    }
示例#2
0
        protected override void DrawStateInspectorEditor(SerializedObject m_Object, AIBehaviors stateMachine)
        {
            GUILayout.Label("Dead Properties:", EditorStyles.boldLabel);

            GUILayout.BeginVertical(GUI.skin.box);

            InspectorHelper.DrawInspector(m_Object);

            GUILayout.EndVertical();

            m_Object.ApplyModifiedProperties();
        }
示例#3
0
 protected override void DrawStateInspectorEditor(SerializedObject m_Object, AIBehaviors stateMachine)
 {
     InspectorHelper.DrawInspector(m_Object);
     m_Object.ApplyModifiedProperties();
 }
示例#4
0
 protected virtual void DrawStateInspectorEditor(SerializedObject stateObject, AIBehaviors stateMachine)
 {
     InspectorHelper.DrawInspector(stateObject);
     stateObject.ApplyModifiedProperties();
 }
示例#5
0
 public virtual void DrawInspectorProperties(AIBehaviors fsm, SerializedObject triggerObject)
 {
     InspectorHelper.DrawInspector(triggerObject);
 }