public static void ShowWindow() { if (desc == null || tex == null) { return; } RateWindow window = (RateWindow)EditorWindow.GetWindow(typeof(RateWindow), true, WindowTitle, true); window.minSize = new Vector2(WindowWidth, WindowHeight); window.maxSize = new Vector2(WindowWidth, WindowHeight); window.Show(); }
private static void DownloadAppIcon() { if (rateIconWWW.isDone) { EditorApplication.update -= DownloadAppIcon; if (rateIconWWW.error != null) { Debug.Log("[Area730] Error downloading rate icon"); return; } else { RateWindow.tex = rateIconWWW.texture; RateWindow.ShowWindow(); } } }