Using PhotonPlayer vs Player's GameObject

I'm probably doing this all wrong but I keep finding I'm in the situation where I have a PhotonPlayer when what I really need is the instantiated GameObject, or vice versa! The list of PhotonPlayers isn't directly connected to their list of instantiated player objects? Is this a manual thing I need to build? Is anybody else doing this or am I way off?

Comments

  • I think this could help if someone could please advise - how can I get the PhotonView of the player connecting in OnPhotonPlayerConnected? I get a PhotonPlayer object but can't see how I look it up (if that's even a valid thing to do):

    public void OnPhotonPlayerConnected(PhotonPlayer other)
    {
    ...
    }