Skip to content

Commit 3e2cd6a

Browse files
committed
[增加]1. 增加程序集防裁剪引用
1 parent eb16341 commit 3e2cd6a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using UnityEngine;
2+
3+
namespace UnityWebSocket
4+
{
5+
public class GameFrameXUnityWebSocketCroppingHelper : MonoBehaviour
6+
{
7+
private void Start()
8+
{
9+
_ = typeof(UnityWebSocket.CloseEventArgs);
10+
_ = typeof(UnityWebSocket.CloseStatusCode);
11+
_ = typeof(UnityWebSocket.ErrorEventArgs);
12+
_ = typeof(UnityWebSocket.IWebSocket);
13+
_ = typeof(UnityWebSocket.MessageEventArgs);
14+
_ = typeof(UnityWebSocket.Opcode);
15+
_ = typeof(UnityWebSocket.OpenEventArgs);
16+
_ = typeof(UnityWebSocket.Settings);
17+
_ = typeof(UnityWebSocket.WebSocket);
18+
_ = typeof(UnityWebSocket.WebSocketManager);
19+
_ = typeof(UnityWebSocket.WebSocketState);
20+
}
21+
}
22+
}

Runtime/GameFrameXUnityWebSocketCroppingHelper.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)