private void Register() { _sineAlienFactory = new SineAlienFactory(); _straightLineAlienFactory = new StraightLineAlienFactory(); //esf = new EnemyShipFactory(); List<UnitTypeFactory> _lFact = new List<UnitTypeFactory>(); //_lFact.Add(esf); //iterate this for each UnitTypeFactory _lFact.Add(_sineAlienFactory); _lFact.Add(_straightLineAlienFactory); base.Register(_lFact.ToArray()); _lFact = null; //this probably isn't necessary, is it? }
private void Register() { _sineAlienFactory = new SineAlienFactory(); _straightLineAlienFactory = new StraightLineAlienFactory(); //esf = new EnemyShipFactory(); List <UnitTypeFactory> _lFact = new List <UnitTypeFactory>(); //_lFact.Add(esf); //iterate this for each UnitTypeFactory _lFact.Add(_sineAlienFactory); _lFact.Add(_straightLineAlienFactory); base.Register(_lFact.ToArray()); _lFact = null; //this probably isn't necessary, is it? }