RPC From Another Class
Options
Trying to call a RPC from another class. But seems like It doesn't work. How can I fix this?
Turning this:
Into this:
I made a debug log in Fire function and seems like It doesn't even trying to call function.
I have [PunRPC] on Fire function. When I press the button I got a log like this:
Thanks already.
Turning this:
chambers[i].Bullet.Fire(muzzle);
Into this:
photonView.RPC("chambers[" + i + "].Bullet.Fire", RpcTarget.All, muzzle);
I made a debug log in Fire function and seems like It doesn't even trying to call function.
I have [PunRPC] on Fire function. When I press the button I got a log like this:
Sending RPC "chambers[0].Bullet.Fire" to target: All or player:.
Thanks already.
0