示例#1
0
 private void CreatePlayerList()
 {
     foreach (PhotonPlayer player in playersList)
     {
         GameObject        playerInfoObject  = Instantiate(PlayerInfoPrefab, PlayerScrollContent.transform);
         PlayerInfoManager playerInfoManager = playerInfoObject.GetComponent <PlayerInfoManager>();
         playerInfoManager.thisPlayer = player;
         playerInfoManager.UpdatePlayerInfo();
         playerInfoObjects.Add(playerInfoObject);
     }
 }