[PunRPC] problem

Hi guys!
I have a problem with PunRPC!
I have only two players in my scene and i want to execute this code just for the OTHER player, but the PunRPC is also executed on the player who calls the method.
When the server player calls this method all works as expected(the method is executed only on the client player).

PhotonNetwork.Destroy(other.gameObject); gameObject.GetPhotonView().RPC("girati", PhotonTargets.Others, true); [PunRPC] private void girati() { Debug.Log("STO A GIRA!"); //SOME CODE }

Thank u and sorry for my english!
Sign In or Register to comment.