23 lines
560 B
C#
23 lines
560 B
C#
using AibisDream.FixSystem;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream.SystemEditor
|
|
{
|
|
[CustomEditor(typeof(BodyModuleSystem))]
|
|
public class BodyModuleSystemEditor : SystemHasDataEditor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
var example = (BodyModuleSystem)target;
|
|
|
|
base.OnInspectorGUI();
|
|
GUILayout.Label("修改");
|
|
|
|
if (GUILayout.Button("添加一个新模块"))
|
|
{
|
|
example.AddBodyModule();
|
|
}
|
|
}
|
|
}
|
|
} |