Ejemplo n.º 1
0
 public IEnumerable<ISystem> GetSystems() {
     PaddleCollectionSystem paddles = new PaddleCollectionSystem();
     yield return paddles;
     yield return new BallCollisionSystem(paddles);
     yield return new MovementSystem();
     yield return new BallSpawningSystem();
     yield return new TemporarySystem();
 }
Ejemplo n.º 2
0
        public IEnumerable <ISystem> GetSystems()
        {
            PaddleCollectionSystem paddles = new PaddleCollectionSystem();

            yield return(paddles);

            yield return(new BallCollisionSystem(paddles));

            yield return(new MovementSystem());

            yield return(new BallSpawningSystem());

            yield return(new TemporarySystem());
        }
 public BallCollisionSystem(PaddleCollectionSystem paddles) {
     _paddles = paddles;
 }
 public BallCollisionSystem(PaddleCollectionSystem paddles)
 {
     _paddles = paddles;
 }