PlayerNumbering script issue

Options
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?

Comments