Beispiel #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        CopyComponents components = target as CopyComponents;

        GUILayout.BeginVertical("Box");
        if (GUILayout.Button("Copy Components"))
        {
            components.copyScriptsOfComponents();
        }

        if (GUILayout.Button("Attach Scripts"))
        {
            components.addScripts();
        }
        GUILayout.EndHorizontal();
    }