public GameManager(Ball ball, RectCollider rectCollider, Player one, Player two) { eventManager = new EventManager(ball, rectCollider, one, two); this.playerOne = one; this.playerTwo = two; }
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; }
public Ball(Ball ball) : this(ball.SpriteTexture, ball.location, ball.Velocity, ball.acceleration, ball.tintColor, ball.scale) { }