[Unity] Duplicated callback interfaces from IChatClientListener and IConnectionCallbacks
Options
in Photon Chat
Both IChatClientListener and IConnectionCallbacks interfaces require me to implement methods called "OnConnected" and "OnDisconnected", but how do I distinguish where they invoked from? I need to handle them both independently.
And the documentation is too poor, especially Chat demo, the code just implements all methods with just meaningless throwing unimplemented exceptions. Seriously, the demo code is useless who tries to learn how to use it.
https://doc.photonengine.com/en-us/chat/current/tutorials/chat-demo
I'm using Unity 2019.4.3f1 and imported the latest PUN2 package from the unity asset store.
And the documentation is too poor, especially Chat demo, the code just implements all methods with just meaningless throwing unimplemented exceptions. Seriously, the demo code is useless who tries to learn how to use it.
https://doc.photonengine.com/en-us/chat/current/tutorials/chat-demo
I'm using Unity 2019.4.3f1 and imported the latest PUN2 package from the unity asset store.
0
Comments
-
Hi @modernator,
Thank you for choosing Photon!
I would not mix the two photon clients in the same class.
I think it's makes things more complicated and harder to maintain.
But if you want to do so, you can use explicit interface implementation.0