private void Check_A_Press()
 {
     foreach (int?num in m_Controllers.A_Pressed_List())
     {
         int  control_num  = num ?? default(int);
         bool player_found = false;
         // do a actions for each person who hit A
         foreach (int i in readied)
         {
             // check if it has a player already
             if (i == control_num)
             {
                 player_found = true;
                 break;
             }
         }
         // if no player already exists, add it
         if (!player_found)
         {
             //set a head to player colour
             AgentManager a = m_Manager.Get_Player((int)num);
             m_Heads_Holder.Heads[(int)a.Get_Player_Number() - 1].sprite = m_Heads_Holder.ReadySprites[a.Get_Color()];
             readied.Add((int)num);
         }
     }
 }
 private void Check_A_Press()
 {
     foreach (int?num in m_Controllers.A_Pressed_List())
     {
         int  control_num  = num ?? default(int);
         bool player_found = false;
         // do a actions for each person who hit A
         foreach (PlayerSelectPanel Panel in Panels)
         {
             // check if it has a player already
             if (Panel.isOccupied() && (Panel.Get_Controller_Number() == control_num))
             {
                 Panel.Ready_Up();
                 player_found = true;
                 break;
             }
         }
         // if no player already exists, add it
         if (!player_found)
         {
             int?empty_panel = findFirstEmptyPanel();
             if (empty_panel != null)
             {
                 int empty_index = empty_panel ?? default(int);
                 Panels[empty_index].Add_Player(control_num);
             }
         }
     }
 }