Пример #1
0
        private void AddUnitWithInputIndex(Unit mUnit)
        {
            Unit U;

            for (int i = 1; i < maxInputCount; i++)
            {
                if (mInputIndexDic.TryGetValue(i, out U) == false)
                {
                    mInputIndexDic[i] = mUnit;
                    mUnit.SetPlayerInputIndex(i);
                    mUnit.mInputAssignment = AssignInput();
                    Log.Info("InpuAssignmet" + mUnit.mInputAssignment);
                    return;
                }
            }
        }