public override void OnPhotonPlayerConnected(PhotonPlayer newPlayer) { GameObject friendsobj = GameObject.Find("FriendManager"); PUNFriends friendscript = friendsobj.GetComponent <PUNFriends>(); friendscript.photonView.RPC("SendHostData", PhotonTargets.All, UsernameScript.username.username + UsernameScript.username.userId); }
public void activateChallengeUI(string name) { GameObject friendsobj = GameObject.Find("FriendManager"); PUNFriends friendscript = friendsobj.GetComponent <PUNFriends>(); friendscript.showChallengerUI(name); }
public override void OnJoinedRoom() { if (FriendInviteRoom) { //check if its the master otherwise show the ui and make the friendscreen popup if (!PhotonNetwork.isMasterClient) { GameObject friendsobj = GameObject.Find("FriendManager"); PUNFriends friendscript = friendsobj.GetComponent <PUNFriends>(); friendscript.ShowFriendUI(); friendscript.clientAddingScreen(); } } else { //PhotonNetwork.LoadLevel(3); } }