23 lines
628 B
C#
23 lines
628 B
C#
using Core;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace Data
|
|
{
|
|
[CustomEditor(typeof(CharacterAttributes))]
|
|
public class CharacterAttributesEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
base.OnInspectorGUI();
|
|
|
|
if (GUILayout.Button("Open Character Attributes Editor"))
|
|
{
|
|
CharacterAttributesWindow window = EditorWindow.GetWindow<CharacterAttributesWindow>();
|
|
window.CharacterAttributesToEdit = target as CharacterAttributes;
|
|
window.Show();
|
|
}
|
|
}
|
|
}
|
|
} |