상속: Gears.Playable.UnitTypeFactory
예제 #1
0
        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?
        }
예제 #2
0
        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?
        }