Пример #1
0
 public GameManager(Ball ball, 
     RectCollider rectCollider, 
     Player one, Player two)
 {
     eventManager = new EventManager(ball, rectCollider, one, two);
     this.playerOne = one;
     this.playerTwo = two;
 }
Пример #2
0
        public EventManager(
            Ball ball,
            RectCollider rectCollider,
            Player player1,
            Player player2)
        {
            this.collisionManager = new TennisForTwo.Managers.CollisionManager();

            this.player1 = player1;
            this.player2 = player2;
            player1.mainDown += MainClick_Down;
            player1.secondaryDown += SecondaryClick_Down;

            player2.mainDown += MainClick_Down;
            player2.secondaryDown += SecondaryClick_Down;
        }
Пример #3
0
 public Ball(Ball ball)
     : this(ball.SpriteTexture, ball.location, ball.Velocity, ball.acceleration, ball.tintColor, ball.scale)
 {
 }