private PlayerCreationEntity GetPlayerCreationEntityByName(string playerName)
 {
     foreach (Transform child in WebGamePlayersContainer.transform)
     {
         PlayersContainerScript playersContainerScript = child.GetComponent <PlayersContainerScript>();
         var ent = playersContainerScript.GetPlayerCreationEntity();
         if (ent.PlayerName.Equals(playerName))
         {
             return(ent);
         }
     }
     return(null);
 }
 private void StartGame(GameObject playersContainer)
 {
     ApplicationModel.ResetMatch();
     ApplicationModel.PlayersToCreate.Clear();
     foreach (Transform child in playersContainer.transform)
     {
         PlayersContainerScript container = child.GetComponent <PlayersContainerScript>();
         if (container != null)
         {
             ApplicationModel.PlayersToCreate.Add(container.GetPlayerCreationEntity());
         }
     }
 }