Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        ObjectPlacer objectPlacer = (ObjectPlacer)target;

        DrawDefaultInspector();
        if (GUILayout.Button("Place / Update"))
        {
            objectPlacer.PlaceObjects();
        }
        else if (GUILayout.Button("Clear"))
        {
            objectPlacer.Clear();
        }
    }