예제 #1
0
    // Used by the Equip button's On_Click()
    public void Click_EquipButton()
    {
        AudioManager.Chirp();

        // If there is a selection, equip the item (and unequip whatever else)
        if (selection != null)
        {
            hero.Equip(partyStash.Contents[(int)selection].Name);
        }

        // Re-populate the grid, given the newly adjusted Inventorys
        PopulateGrid();
    }