public BallsRepository(AimingArrow arrow, Bounds bounds, HangingBalls hangingBalls) { Arrow = arrow; FieldBounds = bounds; HangingBalls = hangingBalls; SetCurrentBall(new Ball(CURRENT_BALL_POSITION, HangingBalls.GetRandomColor())); SetNextBall(new Ball(NEXT_BALL_POSITION, HangingBalls.GetRandomColor())); ThrowBallTimer = new Timer(); ThrowBallTimer.AutoReset = false; ThrowBallTimer.Interval = 10000; ThrowBallTimerRemainingTime = (float)ThrowBallTimer.Interval; ResetTimer(); }
public BallsRepository(AimingArrow arrow, Bounds bounds, HangingBalls hangingBalls) { Arrow = arrow; FieldBounds = bounds; HangingBalls = hangingBalls; SetCurrentBall(new Ball(CURRENT_BALL_POSITION, HangingBalls.GetRandomColor())); SetNextBall(new Ball(NEXT_BALL_POSITION, HangingBalls.GetRandomColor())); ThrowBallTimer = new Timer(); ThrowBallTimer.AutoReset = false; ThrowBallTimer.Interval = 10000; ThrowBallTimerRemainingTime = (float)ThrowBallTimer.Interval; ResetTimer(); }