PUN tutorial trouble

Options
Greetings,

I've done the full tutorial to begin with Pun but I have two problems.
1/ When a new player come to the room, the existing player are cloned.
2/ When the health is 0, the player doesn't quit the room.

Do you have some idea of what might be the source of theses problems ?
Many Thanks

Ps: I have the following error while playing :

NullReferenceException: Object reference not set to an instance of an object
Photon.Pun.Demo.PunBasics.PlayerManager.Update () (at Assets/Photon/PhotonUnityNetworking/Demos/PunBasics-Tutorial/Scripts/PlayerManager.cs:140)

Comments

  • jeanfabre
    Options
    Hi,

    It looks like you might have skipped some steps during the tutorial. Make sure you check against the actual working scenes and script provided with PUN 2. you can then compared what's in there that you might not have implemented in yours.

    When I have such problems, I usually have two projects open, one with the version that works, and one with the version I am debugging. this helps, and is quicker then having one project with both at the same time. it's a pain to switch.

    Bye,

    Jean