Exemple #1
0
 public static void HideAndlockAllButton(this PlatController ctrl, bool isComplete = false)
 {
     if (ctrl.isShow)
     {
         ctrl.Hide(isComplete);
         ctrl.SetAllButtonLock(true);
     }
 }
Exemple #2
0
 public static void ShowAndUnlockAllButton(this PlatController ctrl, bool isComplete = false)
 {
     if (!ctrl.isShow)
     {
         ctrl.Show(isComplete);
         ctrl.SetAllButtonLock(false);
     }
 }
Exemple #3
0
        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);
            }
        }