public override void OnInspectorGUI() { base.OnInspectorGUI(); MenuController mine = (MenuController)target; if (GUILayout.Button("ListCount")) { mine.AddLevelsList(); mine.Count(); } }