public override void OnInspectorGUI() { base.OnInspectorGUI(); RoomGenerator generator = (RoomGenerator)target; GUILayout.BeginHorizontal(); if (GUILayout.Button("Generate Room")) { generator.DrawRoom(); } if (GUILayout.Button("Clean Room")) { generator.EraseRoom(); } GUILayout.EndHorizontal(); }