Photon Callbacks without extending PunBehaviour
Options
Hi,
Is there an Api to get a callbacks from Photon without implementing PunBehaviour?
The overview tutorial seems to indicate that it's possible but in a vague and unclear way:
Is there an Api to get a callbacks from Photon without implementing PunBehaviour?
The overview tutorial seems to indicate that it's possible but in a vague and unclear way:
You don't have to extend PunBehaviour. All callbacks also work if you implement it on it's own. They are also listed and described in the enum PhotonNetworkingMessage.I don't understand what "Implement it on it's own means"?
0
Comments
-
Ow, sorry.
You can skip the "override" keyword. This way, you simply implement the method and you're done.
The interface IPunCallbacks also implements all the callbacks, which could be used as blueprint.0 -
But I still need to inherit from PunBehaviour? I need a way to get a callback without inheriting from PunBehaviour. Is that possible?0