Photon Pun. Weapons not showing for other players in game.
Options
I started making an online fps game a while ago, but players in my game cant see each others weapons for some reason. What can I do?
0
Comments
-
I can provide additional details.0
-
you can use photonView.RPC("");
photonView.RPC("setGun",RpcTarget.AllBuffered, 1)
[PunRPC] void setGun(int gunID) { if(gunID==1) { playerWeaponSpr.sprite=deagleSprite; } if(gunID==2) { playerWeaponSpr.sprite=ak47Sprite; } }
if you do like that you can set the guns for every game screen.0