示例#1
0
文件: NodeScriptUI.cs 项目: oi7/ITSOS
    public override void OnInspectorGUI()
    {
        NodeScript script = (NodeScript)target;

        if (GUILayout.Button("Add Node"))
        {
            script.AddNode();
        }

        if (GUILayout.Button("Remove Node"))
        {
            script.RemoveNode();
        }



        DrawDefaultInspector();
    }