public override void Update(GameTime gameTime) { playerRun.position = playerPostion; playerRun.active = true; currentAnimation = playerRun; currentAnimation.Update(gameTime); if (Input.InputManager.Instance.KeyDown(Keys.Right)){ playerPostion.X += playerMoveSpeed; } // currentAnimation = playerIdle; }
public void Init(Animation run) { playerPostion = Vector2.Zero; playerRun = run; }