Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

PlayerNumbering script issue

$
0
0
hi,

I have an issue with using the PlayerNumbering script. I have attached it normally, but when I call the function p.getPlayerNumber(), I get indexes of first player to be 0 and second player to be -1.
Although in the gameobject it seems to show correct numbering "1,2"
playernumbering.png
So apparently from the image, it is the PlayerID i need to access ? Why does the numbering of player Index appears to be 0 and -1?

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>