Exemple #1
0
        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();
        }
Exemple #2
0
 private void OnCanCollected(SodaCan can, MiniPlayer collectedBy)
 {
     can.OnCollected(collectedBy);
 }
Exemple #3
0
 public void OnCollected(MiniPlayer collectedBy)
 {
     _collectedSound.Play();
 }