I was following the paladin PUN multiplayer tutorial but i’ve ran into a lot of problems. You Can Find the tutorial Here: How to create an online multiplayer game with Photon Unity Networking - Paladin Studios . Please Tell Me what is wrong ASAP
Could someone show me the code I should be using or at least show me an updated tutorial for this
ok so I changed the code but ive come to another problem. Here’s my code:
void OnJoinedRoom() {
GameObject player = PhotonNetwork.Instantiate("playerprefab", Vector3.zero, Quaternion.identity, 0);
CharacterControl controller = player.GetComponent<CharacterControl>();
controller.enabled = true;
CharacterCamera camera = player.GetComponent<CharacterCamera>();
camera.enabled = true;
}
I’m getting the error
and
My character is called playerprefab