예제 #1
0
    // 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);
 }