libunity icon indicating copy to clipboard operation
libunity copied to clipboard

启动报错

Open jaguarWang opened this issue 7 years ago • 1 comments

[Singleton] An instance of NetCore is needed in the scene, so '(singleton) NetCore (UnityEngine.GameObject)' was created with DontDestroyOnLoad. UnityEngine.Debug:Log(Object) NetProto.Singleton`1:get_Instance() (at Assets/Scripts/NetLib/Singleton.cs:51) Sample.Main:Start() (at Assets/Scripts/NetLib/Sample/Main.cs:18)

System.Net.Sockets.SocketException: 使用了与请求的协议不兼容的地址。

at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in :0 at System.Net.Sockets.Socket+Worker.Connect () [0x00000] in :0 UnityEngine.Debug:Log(Object) NetCore:ConnectCallback(IAsyncResult) (at Assets/Scripts/NetLib/NetCore.cs:180) System.Net.Sockets.Worker:Connect()

jaguarWang avatar Jun 28 '17 07:06 jaguarWang

https://github.com/en/libunity/blob/master/Sample/Main.cs#L10 这行你写的啥? 我现在没有环境试验。。

en avatar Jun 28 '17 08:06 en