Example #1
0
        private void AddPlayer(string _inputBase)
        {
            JoinPanel openSlot = GetOpenSlot();

            if (openSlot != null)
            {
                openSlot.Join(_inputBase);
            }
        }
Example #2
0
        private JoinPanel GetOpenSlot()
        {
            for (int i = 0; i < joinPanels.Length; i++)
            {
                JoinPanel jp = joinPanels[i];
                if (!jp.IsJoined)
                {
                    return(jp);
                }
            }

            // No slots open
            return(null);
        }