I need to send an array of ints via RPC
I tried the following, and it does not give an error, but the values do not get sent over properly:
int[] myints=new int[2];
myints[0]=0;
myints[1]=1;
photonView.RPC("sendints",PhotonTargets.Others,(int[])myints);
...
[PunRPC]
void sendints(int[] myints) {
myints[0]....says 0
myints[1]....says 0
anyone know how to do this?
I need to send array of vectors, floats and ints
I tried the following, and it does not give an error, but the values do not get sent over properly:
int[] myints=new int[2];
myints[0]=0;
myints[1]=1;
photonView.RPC("sendints",PhotonTargets.Others,(int[])myints);
...
[PunRPC]
void sendints(int[] myints) {
myints[0]....says 0
myints[1]....says 0
anyone know how to do this?
I need to send array of vectors, floats and ints