Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
psygames committed May 19, 2022
1 parent 9a68aaf commit 58f4c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 67 deletions.
64 changes: 0 additions & 64 deletions Assets/UnityWebSocket/Plugins/WebGL/WebSocket.jslib.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Assets/UnityWebSocket/Scripts/Editor/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private GUIStyle TextStyle(int fontSize = 10, TextAnchor alignment = TextAnchor.

private void DrawVersion()
{
GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft));
GUI.Label(new Rect(440, 10, 150, 10), "Current Version: " + Settings.VERSION, TextStyle(alignment: TextAnchor.MiddleLeft));
if (string.IsNullOrEmpty(latestVersion))
{
GUI.Label(new Rect(440, 30, 150, 10), "Checking for Updates...", TextStyle(alignment: TextAnchor.MiddleLeft));
Expand All @@ -79,7 +79,7 @@ private void DrawVersion()
}
else
{
GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft));
GUI.Label(new Rect(440, 30, 150, 10), "Latest Version: " + latestVersion, TextStyle(alignment: TextAnchor.MiddleLeft));
if (Settings.VERSION == latestVersion)
{
if (GUI.Button(new Rect(440, 50, 150, 18), "Check Update"))
Expand Down Expand Up @@ -183,7 +183,7 @@ private void VersionCheckUpdate()
if (req.isDone)
{
EditorApplication.update -= VersionCheckUpdate;
latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1);
latestVersion = req.url.Substring(req.url.LastIndexOf("/") + 1).TrimStart('v');

if (Settings.VERSION != latestVersion)
{
Expand Down

0 comments on commit 58f4c1a

Please sign in to comment.