InRoomCallbacks issue

Options
Hi,

I try to implement onPlayerLeftRoom on 2 different objects. It is only called on one Unity Gameobject. The other one is never called. What's the reason behind this ?
public override void OnPlayerLeftRoom(Player otherPlayer)
        {

Comments

  • Tobias
    Options
    In PUN 2, you need to register instances that should get callbacks. Deriving from MonoBehaviourPun will do that for you unless you override OnEnable and OnDisable without calling base.