Hello,
I have a problem with the RPC
I would spend more variable when the player enters a trigger when I tested I have no error and nothing happens.
Here is my code
Thanks in advance
I have a problem with the RPC
I would spend more variable when the player enters a trigger when I tested I have no error and nothing happens.
Here is my code
void OnTriggerEnter(Collider ball){
if (ball.gameObject.tag == "Ball") {
ball.gameObject.GetComponent<PhotonView>().RPC("action",PhotonTargets.Others,new object[] {5,"test" });
}
}
[PunRPC]
void action(int playerid , string text){
Uiconnection.text_action = "touch"+playerid+"and "+text;
}
Thanks in advance