コード例 #1
0
        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();
        }
コード例 #2
0
        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();
                }
            }
        }