public static void HideAndlockAllButton(this PlatController ctrl, bool isComplete = false) { if (ctrl.isShow) { ctrl.Hide(isComplete); ctrl.SetAllButtonLock(true); } }
public static void ShowAndUnlockAllButton(this PlatController ctrl, bool isComplete = false) { if (!ctrl.isShow) { ctrl.Show(isComplete); ctrl.SetAllButtonLock(false); } }
private void DrawButtonList() { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Lock All")) { controller.SetAllButtonLock(true); } if (GUILayout.Button("Unlock All")) { controller.SetAllButtonLock(false); } EditorGUILayout.EndHorizontal(); foreach (var btn in controller.GetAllButton()) { DrawButtonItem(btn); } }