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

warning: event(onConnectionState) NotFound #7

Open
bl0up opened this issue Jul 13, 2017 · 3 comments
Open

warning: event(onConnectionState) NotFound #7

bl0up opened this issue Jul 13, 2017 · 3 comments

Comments

@bl0up
Copy link

bl0up commented Jul 13, 2017

Hi,

I'm trying to make this demo work with unity and it seems to be ok but I get a warning about this "onConnectionState" event. How can I solve this issue?

Here is the complete log:

Event::fireIn: event(onConnectionState) not found! UnityEngine.Debug:LogWarning(Object)

KBEngine.Dbg:WARNING_MSG(Object) (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/Dbg.cs:47)

KBEngine.Event:fire_(Dictionary2, LinkedList1, String, Object[]) (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/Event.cs:276)

KBEngine.Event:fireAll(String, Object[]) (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/Event.cs:264)

KBEngine.NetworkInterface:_onConnectionState(ConnectState) (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/NetworkInterface.cs:110)

System.Reflection.MethodBase:Invoke(Object, Object[])

KBEngine.Event:processInEvents() (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/Event.cs:365)

KBEngine.KBEngineApp:process() (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs:288)

KBEngine.KBEngineAppThread:process() (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs:2702)

KBEngine.KBEThread:run() (at Assets/Plugins/kbengine/kbengine_unity3d_plugins/KBEngine.cs:2632)

Thanks :)

@kbengine
Copy link
Owner

Hi,
This is not a problem. Whether the event needs processing is optional. Perhaps the warning should be closed.

@bl0up
Copy link
Author

bl0up commented Jul 17, 2017

Ok, thank you for your answer.

What if I want to define this method? Where should I write it? I have a hard time figuring that out.

@kbengine
Copy link
Owner

You're in any place “registerOut (onConnectionState,...)”, reference demos.

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