示例#1
0
 public static void ShowAndUnlockAllButton(this PlatController ctrl, bool isComplete = false)
 {
     if (!ctrl.isShow)
     {
         ctrl.Show(isComplete);
         ctrl.SetAllButtonLock(false);
     }
 }
示例#2
0
 private void DrawPlatController()
 {
     if (GUILayout.Button(controller.isShow ? "Hide" : "Show"))
     {
         if (controller.isShow)
         {
             controller.Hide();
         }
         else
         {
             controller.Show();
         }
     }
     isShowAllButton = EditorGUILayout.Foldout(isShowAllButton, "Button List");
     if (isShowAllButton)
     {
         DrawButtonList();
     }
 }