Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        EditorGUILayout.Space(10);

        ObjectSpawner objectSpawner = (ObjectSpawner)target;

        if (GUILayout.Button("Draw Debug"))
        {
            objectSpawner.DrawDebug();
        }
    }