PhotonPlayer not recognized?

Options
Hi,

This might be a stupid question. I'm setting up my script to do something when a player joins the room. I have:

void OnPhotonPlayerConnected(PhotonPlayer newPlayer)
{
		
}

But PhotonPlayer is showing up as not recognized. I've been looking through the docs to figure out what I'm missing but I can't seem to find what I need to 'implement' in order for my game to recognize the PhotonPlayer class. At the top I have

using Photon.Pun;
using Photon.Realtime;

public class LobbyController : MonoBehaviourPunCallbacks

and this has been working for everything so far, but not PhotonPlayer unfortunately :/ Any ideas? Thanks!

Comments