public override void Update(GameTime gameTime) { _PhysicsHandler.Move(gameTime, this, null); _collision.HanldeCollisions(null, this); if (cooldown.CooldownTimer(gameTime, 2)) //Verwijder bullet na 2 seconden { Alive = false; } }
public override void Update(GameTime gameTime) { _AnimationHandler.Update(gameTime, _PhysicsHandler, _collision, this); if (cooldown.CooldownTimer(gameTime, shootingSpeed)) { canShoot = true; } if (Mouse.LeftKeyClicked() && canShoot) { Shoot(gameTime); canShoot = false; } }