public virtual void LoadContent(ContentManager content, InputManager inputManager) { this.content = new ContentManager(content.ServiceProvider, "Content"); velocity = Vector2.Zero; terminalVelocity = 20; jumpSpeed = -15; fallSpeed = 0.5f; horizontalSpeed = 5; dead = false; CollisionDetector.getInstance().Attach(this); }
public virtual void Update(GameTime gameTime, InputManager input) { Update(gameTime); CollisionDetector.getInstance().Update(); }
public virtual void Kill() { dying = true; CollisionDetector.getInstance().Detach(this); }