Skip to content

Commit 047118e

Browse files
committed
[修改]1. 修改宏定义的切换异常
1 parent 8f62586 commit 047118e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Runtime/Implementation/NoWebGL/WebSocket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !UNITY_WEBGL
1+
#if UNITY_WEBGL
22
using System;
33
using System.Text;
44
using System.Threading;
@@ -9,7 +9,7 @@
99

1010
namespace UnityWebSocket
1111
{
12-
public class WebSocket : IWebSocket
12+
public sealed class WebSocket : IWebSocket
1313
{
1414
public string Address { get; private set; }
1515
public string[] SubProtocols { get; private set; }

Runtime/Implementation/NoWebGL/WebSocketManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !UNITY_WEBGL
1+
#if UNITY_WEBGL
22
using System.Collections.Generic;
33
using UnityEngine;
44

Runtime/Implementation/WebGL/WebSocket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#if UNITY_WEBGL
1+
#if UNITY_WEBGL && !UNITY_EDITOR
22

33
using System;
44

55
namespace UnityWebSocket
66
{
7-
public class WebSocket : IWebSocket
7+
public sealed class WebSocket : IWebSocket
88
{
99
public string Address { get; private set; }
1010
public string[] SubProtocols { get; private set; }

Runtime/Implementation/WebGL/WebSocketManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_WEBGL
1+
#if UNITY_WEBGL && !UNITY_EDITOR
22
using System;
33
using System.Collections.Generic;
44
using System.Runtime.InteropServices;

0 commit comments

Comments
 (0)