Esempio n. 1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     GetSprite.Draw(Texture2DStorage.GetDownUseItemLinkSpriteSheet(), spriteBatch, GlobalDefinitions.Position);
     if (Link.Item == 1)
     {
         this.game.ProjectileFactory.AddArrow(GlobalDefinitions.Position, new Vector2(0, 1));
     }
     if (Link.Item == 2)
     {
         this.game.ProjectileFactory.AddBomb(GlobalDefinitions.Position, new Vector2(0, 1));
     }
     if (Link.Item == 3)
     {
         this.game.ProjectileFactory.AddBoomer(GlobalDefinitions.Position, new Vector2(0, 1));
     }
 }