Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }