Exemplo n.º 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);
        }
Exemplo n.º 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);
        }