public void AddPig(bool isInTree) { var pig = new Pig( new Rectangle(428,52,104,100), new Rectangle(bounds.Width,bounds.Height - 130,104,100), -2.1f); if (isInTree) { pig.DestinationRect.Y -= 115; pig.ScoreValue = 100; } AddPig(pig); //pigs.Add(pig); //effectSnort.Play(); }
public void AddPig(Pig pig) { pigs.Add(pig); effectSnort.Play(); }