/// <summary> /// Raises the inspector GUI event. /// </summary> public override void OnInspectorGUI() { ICECreatureMission _target = DrawMissionHeader <ICECreatureMission>(); TargetEditor.DrawTargetObject(_target.CreatureControl, _target.Target, "", ""); TargetEditor.DrawTargetContent(_target.CreatureControl, _target.Target); DrawMissionFooter(_target); }
/// <summary> /// Draws the footer. /// </summary> /// <param name="_target">Target.</param> public virtual void DrawMissionFooter(ICECreatureMission _entity) { if (_entity == null) { return; } EditorGUILayout.Separator(); // indentLevel was increased in the header, so we have to decrease the level here EditorGUI.indentLevel--; // Version Info EditorGUILayout.LabelField(" - " + _entity.GetType().ToString() + " v" + Info.Version + " - ", EditorStyles.centeredGreyMiniLabel); MarkSceneDirty(_entity); }