/// <summary> /// Raises the inspector GUI event. /// </summary> public override void OnInspectorGUI() { ICECreaturePlayerUI _target = DrawEntityStatusUIHeader <ICECreaturePlayerUI>(); DrawPlayerUIContent(_target); DrawFooter(_target); }
protected virtual void DrawPlayerUIContent(ICECreaturePlayerUI _player) { if (_player == null) { return; } _player.UseDisplayEntityInfos = ICEEditorLayout.Toggle("Display World Information", "", _player.UseDisplayEntityInfos); _player.HealthBar = (Image)EditorGUILayout.ObjectField("Health Bar", _player.HealthBar, typeof(Image), true); _player.InventorySlotBar = (Image)EditorGUILayout.ObjectField("Inventory Slot Bar ", _player.InventorySlotBar, typeof(Image), true); _player.DamageIndicator = (Image)EditorGUILayout.ObjectField("Damage Indicator", _player.DamageIndicator, typeof(Image), true); //CreatureObjectEditor.DrawEntityStatusObject( _entity, _entity.Status, m_HeaderType ); }