Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Pass more variable with RPC

$
0
0
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


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

Viewing all articles
Browse latest Browse all 15755

Trending Articles