void Update()
 {
     for (int index = 0; index < m_Players.Count; ++index)
     {
         WiFiPlayer player = m_WiFiPlayers[index];
         if (player != null)
         {
             player.Test();
         }
     }
 }
    protected override void Awake()
    {
        WiFiInputSystem.InitializeMain();

        for (int index = 0; index < m_Players.Count; ++index)
        {
            PlayerEntry entry = m_Players[index];
            if (entry != null)
            {
                WiFiPlayerInput playerInput = WiFiInputSystem.GetPlayerByNameMain(entry.playerName);
                if (playerInput != null)
                {
                    WiFiPlayer player = new WiFiPlayer(entry.playerName, playerInput);

                    for (int buttonIndex = 0; buttonIndex < entry.buttonsCount; ++buttonIndex)
                    {
                        string button = entry.GetButton(buttonIndex);
                        if (button != "")
                        {
                            player.AddButton(button);
                        }
                    }

                    for (int axisIndex = 0; axisIndex < entry.axesCount; ++axisIndex)
                    {
                        string axis = entry.GetAxis(axisIndex);
                        if (axis != "")
                        {
                            player.AddAxis(axis);
                        }
                    }
                    m_WiFiPlayers.Add(player);
                }
            }
        }
    }