Senseix.SenseixSession.GetCurrentPlayerList C# (CSharp) Method

GetCurrentPlayerList() public static method

public static GetCurrentPlayerList ( ) : ArrayList
return System.Collections.ArrayList
        public static ArrayList GetCurrentPlayerList()
        {
            ArrayList returnList = new ArrayList ();
            if (currentPlayerList == null)
            {
                Debug.Log("No current player list.  Maybe not connected.");
                return returnList;
            }

            for (int i = 0; i < currentPlayerList.player.Count; i++)
            {
                returnList.Add(currentPlayerList.player[i]);
            }
            return returnList;
        }

Usage Example

 public void PullAvailablePlayers()
 {
     availablePlayers = SenseixSession.GetCurrentPlayerList();
 }