コード例 #1
0
 public static void ShowDebugger()
 {
     if (Application.isPlaying && !isSetupComplete)
     {
         EditorUtility.DisplayDialog("FBDebugger", "You haven't completed the initial setup. Exit Play Mode in the editor and go to Tools > FBDebugger > Setup.", "Ok");
     }
     else if (!Application.isPlaying && !isSetupComplete)
     {
         EditorUtility.DisplayDialog("FBDebugger", "You haven't set up the debugger yet. Go to Tools > FBDebugger > Setup.", "Ok");
     }
     else if (!Application.isPlaying && isSetupComplete)
     {
         EditorUtility.DisplayDialog("FBDebugger", "You need to be in Play mode to use the FBDebugger editor", "Ok");
     }
     else
     {
         FBDebuggerWindow.ShowDebugger();
     }
 }
コード例 #2
0
 public static void ShowDebugger()
 {
     if (Application.internetReachability == NetworkReachability.NotReachable)
     {
         EditorUtility.DisplayDialog("Firebase Debugger", "You'll need to be connected to the internet for this tool to work.", "Ok");
     }
     else if (Application.isPlaying && !isSetupComplete)
     {
         EditorUtility.DisplayDialog("Firebase Debugger", "You haven't completed the initial setup. Exit Play Mode in the editor and go to Tools > FBDebugger > Setup.", "Ok");
     }
     else if (!Application.isPlaying && !isSetupComplete)
     {
         EditorUtility.DisplayDialog("Firebase Debugger", "You haven't set up the debugger yet. Go to Tools > FBDebugger > Setup.", "Ok");
     }
     else if (!Application.isPlaying && isSetupComplete)
     {
         EditorUtility.DisplayDialog("Firebase Debugger", "You need to be in Play mode to use the FBDebugger editor", "Ok");
     }
     else
     {
         FBDebuggerWindow.ShowDebugger();
     }
 }
コード例 #3
0
 /// <summary>
 /// Editor instance constructor fired from FBDMenuItems.
 /// </summary>
 public static void ShowDebugger()
 {
     instance = (FBDebuggerWindow)EditorWindow.GetWindow(typeof(FBDebuggerWindow));
     instance.titleContent = new GUIContent("FBDebugger");
     instance.minSize      = new Vector2(800, 400);
 }