NetworkingPeer.RebuildPlayerListCopies C# (CSharp) Method

RebuildPlayerListCopies() private method

private RebuildPlayerListCopies ( ) : void
return void
    void RebuildPlayerListCopies()
    {
        this.mPlayerListCopy = new PhotonPlayer[this.mActors.Count];
        this.mActors.Values.CopyTo(this.mPlayerListCopy, 0);

        List<PhotonPlayer> otherP = new List<PhotonPlayer>();
        foreach (PhotonPlayer player in this.mPlayerListCopy)
        {
            if (!player.isLocal)
            {
                otherP.Add(player);
            }
        }

        string debug = "";
        foreach (PhotonPlayer player in mPlayerListCopy)
        {
            debug += player != null ? player.name : "null";
        }

        this.mOtherPlayerListCopy = otherP.ToArray();
    }
NetworkingPeer