How do you make an array out of this code?
Options
iamE
✭
int players = PhotonNetwork.playerList; string killer = new Random(0, players);These are the lines where Unity wants an array, but I dont know how to do it. I'm new to coding and I know I'm doing something painfully obvious. Please help.
0
Comments
-
What do you want to implement with those 2 limes?
If random player required, generate random integer 'n' in 0 - PhotonNetwork.playerList.Length range and take n-th element of PhotonNetwork.playerList0