Пример #1
0
        public override void OnInspectorGUI()
        {
            ICECreatureOdourAttribute _attribute = DrawEntityHeader <ICECreatureOdourAttribute>();

            DrawOdourContent(_attribute);
            DrawFooter(_attribute);
        }
Пример #2
0
 /// <summary>
 /// Draws the content of the odour attribute.
 /// </summary>
 /// <param name="_attribute">Attribute.</param>
 public void DrawOdourContent(ICECreatureOdourAttribute _attribute)
 {
     _attribute.Odour = (OdourType)ICEEditorLayout.EnumPopup("Odour", "", _attribute.Odour);
     if (_attribute.Odour != OdourType.NONE)
     {
         EditorGUI.indentLevel++;
         _attribute.OdourIntensity = ICEEditorLayout.MaxDefaultSlider("Intensity", "", _attribute.OdourIntensity, 1, 0, ref _attribute.OdourIntensityMax, 0, Info.ODOUR_INTENSITY);
         _attribute.OdourRange     = ICEEditorLayout.MaxDefaultSlider("Range", "", _attribute.OdourRange, 1, 0, ref _attribute.OdourRangeMax, 0, Info.ODOUR_RANGE);
         EditorGUI.indentLevel--;
         EditorGUILayout.Separator();
     }
 }