public override void Update(GameTime gameTime) { Body.Hikuah(12); SourceRect = ItemMovement.Animate(gameTime); if (GetPosition().X > CowGameScreen.Graphics.PreferredBackBufferWidth && CowGameScreen.WorldOnFocus.RightWorld != null) { CowGameScreen.ChangeWorld(this, Direction.Right); } if (GetPosition().X + GetPosition().Width < 0 && CowGameScreen.WorldOnFocus.LeftWorld != null) { CowGameScreen.ChangeWorld(this, Direction.Left); } }
public override void Update(GameTime gameTime) { Body.Stop(); SourceRect = ItemMovement.Animate(gameTime); }