private void LoadContent() { _texture = _content.Load <Texture2D>("Textures/Objects/FridgeGame/DrinkFridgeBackground"); // Load the player _player = new MiniPlayer(this, new Vector2(50, _device.Viewport.Height - 400), _name); _racks.Add(new FridgeRack(new Vector2(456, 455), this, SodaCan.Brand.Can_DrDocuments_Small)); _racks.Add(new FridgeRack(new Vector2(595, 455), this, SodaCan.Brand.Can_ImplementationMist_Small)); _racks.Add(new FridgeRack(new Vector2(741, 455), this, SodaCan.Brand.Can_SupportSoda_Small)); DropNewCan(); }
private void OnCanCollected(SodaCan can, MiniPlayer collectedBy) { can.OnCollected(collectedBy); }
public void OnCollected(MiniPlayer collectedBy) { _collectedSound.Play(); }