public override void OnInspectorGUI() { DrawDefaultInspector(); RoadGenerator rg = (RoadGenerator)target; if (GUILayout.Button("BuildRoad")) { rg.buildRoad(); } }