Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报错 #3

Open
jaguarWang opened this issue Jun 28, 2017 · 1 comment
Open

启动报错 #3

jaguarWang opened this issue Jun 28, 2017 · 1 comment

Comments

@jaguarWang
Copy link

[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()

@en
Copy link
Owner

en commented Jun 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants