示例#1
0
        public static void RegisterUnits <T>(Units <T> units)
        {
            UnitTypeContainer <T> unitType = UnitType <T>();

            if (unitType == null)
            {
                Log.warn("Unit type {0} has not been registered.  Units {1} will not be added.", typeof(T), units);
            }

            unitType.AddUnits(units);
        }
示例#2
0
        public static void RegisterUnits <T>(Units <T> units)
        {
            UnitTypeContainer <T> unitType = UnitType <T>();

            if (unitType == null)
            {
                Debug.LogWarning("Unit type " + typeof(T).ToString() + " has not been registered.  Units " + units.ToString() + " will not be added.");
            }

            unitType.AddUnits(units);
        }