Photon Callbacks without extending PunBehaviour

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:
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"?

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.
  • But I still need to inherit from PunBehaviour? I need a way to get a callback without inheriting from PunBehaviour. Is that possible?
  • nbilal said:

    But I still need to inherit from PunBehaviour? I need a way to get a callback without inheriting from PunBehaviour. Is that possible?

    And outside of a unity script. I am basically building a wrapper class that listens to a photon callback and triggers and event.
Sign In or Register to comment.