public override void OnPlayerEnteredRoom(Player newPlayer) wont parse.

Options

I'm attempting to add other players to the room. Everything is working fine but these two methods are giving me problems.



Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options

    Hi @MarkusSharpus,

    Thank you for choosing Photon!

    It's probably because you have another class called Player.

    So you have two options:

    1. at the top of the file add: using Player = Photon.Realtime.Player;
    2. in the callbacks parameter, replace Player with Photon.Realtime.Player.