public override void OnInspectorGUI() { base.OnInspectorGUI(); GroundGenerator generator = (GroundGenerator)target; if (GUILayout.Button("Generate island")) { generator.GenerateIsland(); } if (GUILayout.Button("Randomize tiles")) { generator.EditorGenerate(10, 10); } }